Files
bot-api/docker-compose.yml

24 lines
503 B
YAML
Raw Normal View History

services:
bot-api:
build: .
container_name: bot-api
restart: unless-stopped
ports:
- "3091:3091"
volumes:
- bot-data:/data
environment:
- PORT=3091
- DB_PATH=/data/bots.db
- NODE_ENV=production
- API_TOKEN=${API_TOKEN:-change-me-to-a-long-random-string}
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3091/api/v1/health"]
interval: 30s
timeout: 5s
retries: 3
volumes:
bot-data:
driver: local