Added variables, resource limits and health check
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Main interface port for accessing the application
|
# Main interface port for accessing the application
|
||||||
DOCKHAND_PORT="3000"
|
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
|
# Time Zone where the application is operating
|
||||||
DOCKHAND_TZ="America/Los_Angeles"
|
DOCKHAND_TZ="America/Los_Angeles"
|
||||||
|
|||||||
@@ -8,7 +8,19 @@ services:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- dockhand_data:/app/data
|
- dockhand_data:/app/data
|
||||||
environment:
|
environment:
|
||||||
|
- PUID=${DOCKHAND_PUID}
|
||||||
|
- PGID=${DOCKHAND_PGID}
|
||||||
- TZ=${DOCKHAND_TZ}
|
- 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
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user