docker-compose.yml
1version: '3.8'
2
3services:
4 bot:
5 build: .
6 restart: unless-stopped
7 env_file: .env
8 ports:
9 - "3000:3000"
10 healthcheck:
11 test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
12 interval: 30s
13 timeout: 10s
14 retries: 3
15 start_period: 40s
16 volumes:
17 - ./logs:/app/logs
18 networks:
19 - bot-network
20
21networks:
22 bot-network:
23 driver: bridge