From 44c1de67cd0b14fa839c6750cbc4313c341ac777 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Tue, 19 May 2026 09:28:51 -0700 Subject: [PATCH] added healthchecks and resource limits. Also changed a variable --- Pinchflat/.env.example | 2 +- Pinchflat/docker-compose-nfs.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Pinchflat/.env.example b/Pinchflat/.env.example index 5c56b71..931115b 100644 --- a/Pinchflat/.env.example +++ b/Pinchflat/.env.example @@ -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 diff --git a/Pinchflat/docker-compose-nfs.yaml b/Pinchflat/docker-compose-nfs.yaml index 3aae929..8a79173 100644 --- a/Pinchflat/docker-compose-nfs.yaml +++ b/Pinchflat/docker-compose-nfs.yaml @@ -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: