-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 823 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 823 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
services:
monitor:
build:
context: .
dockerfile: docker/Dockerfile
command: /app/docker/entrypoint-monitor.sh
ports:
- "3001:3001"
env_file: .env
environment:
SERVE_DASHBOARD: "true"
WS_PORT: "3001"
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3001').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
agent:
build:
context: .
dockerfile: docker/Dockerfile
command: /app/docker/entrypoint-agent.sh
env_file: .env
environment:
MONITOR_WS_URL: "ws://monitor:3001"
AGENT_PROVIDER: "${AGENT_PROVIDER:-pi}"
depends_on:
monitor:
condition: service_healthy
restart: unless-stopped