-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
43 lines (41 loc) · 1.2 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
43 lines (41 loc) · 1.2 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
41
42
43
# Development Docker Compose for Radon Discord Bot
# Uses cloud services (MongoDB Atlas + Redis Cloud) with development credentials
services:
# Discord Bot for Development with Cloud Services
radon-bot-dev:
build:
context: .
dockerfile: Dockerfile
target: development
container_name: radon-discord-bot-dev
restart: unless-stopped
env_file:
- .env.development # Your development environment file with cloud service credentials
environment:
- NODE_ENV=development
- BUN_ENV=development
ports:
- '3001:3000' # Different port from production for local access
volumes:
# Mount source code for hot reloading
- ./src:/app/src
- ./prisma:/app/prisma
- ./package.json:/app/package.json
- ./tsconfig.base.json:/app/tsconfig.base.json
# Mount logs directory for persistence
- radon-dev-logs:/app/logs
networks:
- radon-dev-network
# Health check to ensure bot is running
healthcheck:
test: ['CMD', 'pgrep', '-f', 'bun']
interval: 30s
timeout: 10s
start_period: 15s
retries: 3
volumes:
radon-dev-logs:
driver: local
networks:
radon-dev-network:
driver: bridge