-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 986 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (33 loc) · 986 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
33
34
services:
dockdash:
build:
context: .
dockerfile: Dockerfile
container_name: dockdash
restart: unless-stopped
ports:
- "${PORT:-3001}:${PORT:-3001}"
environment:
- LOG_LEVEL=${LOG_LEVEL:-info}
- PORT=${PORT:-3001}
- DOCKER_HOSTS=${DOCKER_HOSTS:-unix:///var/run/docker.sock}
- NETWORK_CIDRS=${NETWORK_CIDRS:-192.168.0.1/24}
- DB_PATH=/app/data/dockdash.db
- HEALTH_CHECK_INTERVAL=${HEALTH_CHECK_INTERVAL:-30000}
- RESOURCE_MONITOR_INTERVAL=${RESOURCE_MONITOR_INTERVAL:-5000}
- UPDATE_CHECK_INTERVAL=${UPDATE_CHECK_INTERVAL:-3600000}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- dockdash-data:/app/data
healthcheck:
test:
[
"CMD-SHELL",
"wget --no-verbose --tries=1 --spider http://localhost:$${PORT}/api/health/ready",
]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
volumes:
dockdash-data: