-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.22 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.22 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
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: craftcommand-backend
ports:
- "3001:3001"
volumes:
- ./data:/app/data
- ./minecraft_servers:/app/minecraft_servers
environment:
- NODE_ENV=production
- JWT_SECRET=${JWT_SECRET:-stable-dev-secret-key-12345}
restart: unless-stopped
networks:
- craftcommand-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/api/system/status"]
interval: 30s
timeout: 10s
retries: 3
agent:
build:
context: .
dockerfile: agent/Dockerfile
container_name: craftcommand-agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./agent_servers:/app/servers
environment:
- NODE_ENV=production
- PANEL_URL=http://backend:3001
- AGENT_NODE_ID=${AGENT_NODE_ID:-local}
- AGENT_NODE_SECRET=${AGENT_NODE_SECRET}
- HOST_SERVERS_DIR=${HOST_SERVERS_DIR}
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
- craftcommand-network
# No global volumes needed for bind mounts
networks:
craftcommand-network:
driver: bridge