-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (51 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
59 lines (51 loc) · 1.29 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
mrroboto:
build:
context: .
dockerfile: Dockerfile
container_name: mrroboto-bot
restart: unless-stopped
# Environment variables from .env file
env_file:
- .env
# Additional environment variables for Docker
environment:
- NODE_ENV=production
- TZ=UTC
# env_file:
# - .env
# Mount volumes for persistent data
volumes:
- ./data:/usr/src/app/data
- ./logs:/usr/src/app/logs
# Optional: Mount config if you want to modify it without rebuilding
# - ./src/config.js:/usr/src/app/src/config.js:ro
# Resource limits to prevent runaway processes
deploy:
resources:
limits:
memory: 512M
cpus: "0.5"
reservations:
memory: 256M
cpus: "0.25"
# Network configuration
networks:
- mrroboto-network
# Health check - temporarily disabled to diagnose restart loop
# healthcheck:
# test: ["CMD", "node", "-e", "console.log('Health check passed')"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 40s
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Networks
networks:
mrroboto-network:
driver: bridge