-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3.8'
services:
patchy-bot:
build:
context: .
dockerfile: Dockerfile
container_name: patchy-discord-bot
restart: unless-stopped
environment:
# These variables will be loaded from your .env file automatically
# Docker Compose looks for .env file in the same directory
- DISCORD_TOKEN=${DISCORD_TOKEN}
- DISCORD_CHANNEL_ID=${DISCORD_CHANNEL_ID}
- GITHUB_WEBHOOK_SECRET=${GITHUB_WEBHOOK_SECRET}
- HOST=${HOST:-0.0.0.0} # Default: 0.0.0.0 if not set
- PORT=${PORT:-8000} # Default: 8000 if not set
- DEBUG=${DEBUG:-false} # Default: false if not set
- LOG_LEVEL=${LOG_LEVEL:-INFO} # Default: INFO if not set
ports:
- "${PORT:-8000}:${PORT:-8000}"
volumes:
# Optional: Mount logs directory for persistent logging
- ./logs:/app/logs
networks:
- patchy-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORT:-8000}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
patchy-network:
driver: bridge
volumes:
logs:
driver: local