added healthchecks and resource limits. Also changed a variable

This commit is contained in:
2026-05-19 09:28:51 -07:00
parent 80f173ebc5
commit 44c1de67cd
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -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
+8
View File
@@ -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: