-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 976 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 976 Bytes
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
# Production Docker Compose for Radon Discord Bot
# Uses cloud services (MongoDB Atlas + Redis Cloud)
services:
# Discord Bot - Production Configuration with Cloud Services
radon-bot:
build:
context: .
dockerfile: Dockerfile
target: production # Explicitly target production stage
container_name: radon-production
restart: unless-stopped
env_file:
- .env # Your .env file with MongoDB Atlas & Redis Cloud credentials
environment:
- NODE_ENV=production
- BUN_ENV=production
ports:
- '3000:3000' # For health checks or web dashboard if needed
volumes:
- radon-logs:/app/logs # Persist logs
networks:
- radon-network
# Health check to ensure bot is running
healthcheck:
test: ['CMD', 'pgrep', '-f', 'bun']
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
volumes:
radon-logs:
driver: local
networks:
radon-network:
driver: bridge