Added variables, resource limits and health check

This commit is contained in:
2026-04-26 16:24:30 -07:00
parent 4bd63fadea
commit 081adca46f
2 changed files with 18 additions and 0 deletions
+12
View File
@@ -8,7 +8,19 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- dockhand_data:/app/data
environment:
- PUID=${DOCKHAND_PUID}
- PGID=${DOCKHAND_PGID}
- TZ=${DOCKHAND_TZ}
deploy:
resources:
limits:
memory: 512m
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:${PORT:-3000}/ || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
restart: unless-stopped
volumes: