From 1b1d058ded8fbbc253301bf84306c65e1bcce3c8 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Tue, 19 May 2026 09:52:21 -0700 Subject: [PATCH] added bind mount and updated env examples --- Pinchflat/.env.example | 7 ++++++- Pinchflat/docker-compose-bind.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 Pinchflat/docker-compose-bind.yaml diff --git a/Pinchflat/.env.example b/Pinchflat/.env.example index 931115b..caec8a4 100644 --- a/Pinchflat/.env.example +++ b/Pinchflat/.env.example @@ -27,7 +27,12 @@ PINCHFLAT_SECRET_KEY= # Controls default permissions on created files (022 = owner rw, group/other r) PINCHFLAT_UMASK=022 -# NFS +# Bind mount only + +# Host path for the config directory (SQLite DB, logs, metadata) +PINCHFLAT_CONFIG=/path/to/config + +# NFS only # IP address or hostname of the NFS server PINCHFLAT_NFS_SERVER=192.168.1.x diff --git a/Pinchflat/docker-compose-bind.yaml b/Pinchflat/docker-compose-bind.yaml new file mode 100644 index 0000000..64963a4 --- /dev/null +++ b/Pinchflat/docker-compose-bind.yaml @@ -0,0 +1,26 @@ +services: + app: + image: keglin/pinchflat:${PINCHFLAT_VERSION:-latest} + container_name: pinchflat-app + environment: + - TZ=${PINCHFLAT_TZ:-America/Los_Angeles} + - LOG_LEVEL=info + - YT_DLP_WORKER_CONCURRENCY=1 + - BASIC_AUTH_USERNAME=${PINCHFLAT_AUTH_USER:-admin} + - BASIC_AUTH_PASSWORD=${PINCHFLAT_AUTH_PASS:-changeme} + - SECRET_KEY_BASE=${PINCHFLAT_SECRET_KEY} + - UMASK=${PINCHFLAT_UMASK:-022} + ports: + - ${PINCHFLAT_PORT:-8945}:8945 + volumes: + - ${PINCHFLAT_CONFIG}:/config + - ${PINCHFLAT_DOWNLOAD}:/downloads + healthcheck: + test: ["CMD-SHELL", "curl --fail http://localhost:8945/healthcheck || exit 1"] + interval: 30s + start_period: 15s + deploy: + resources: + limits: + memory: 1G + restart: unless-stopped \ No newline at end of file