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
+6
View File
@@ -1,5 +1,11 @@
# Main interface port for accessing the application
DOCKHAND_PORT="3000"
# User ID the container process runs as (run `id -u` on the host to get this)
DOCKHAND_PUID="1000"
# Group ID the container process runs as (run `id -g` on the host to get this)
DOCKHAND_PGID="1000"
# Time Zone where the application is operating
DOCKHAND_TZ="America/Los_Angeles"
+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: