added healthchecks and resource limits. Also changed a variable
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
PINCHFLAT_VERSION=latest
|
||||
|
||||
# IANA timezone name for the container (e.g. America/Chicago, America/New_York)
|
||||
PINCHFLAT_TZ=America/Chicago
|
||||
PINCHFLAT_TZ=America/Los_Angeles
|
||||
|
||||
# Host port to expose the Pinchflat web UI on
|
||||
PINCHFLAT_PORT=8945
|
||||
|
||||
@@ -16,6 +16,14 @@ services:
|
||||
volumes:
|
||||
- pinchflat-app:/config
|
||||
- ${PINCHFLAT_DOWNLOAD}:/downloads
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl --fail http://localhost:${PORT}/healthcheck || exit 1"]
|
||||
interval: 30s
|
||||
start_period: 15s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user