added bind mount and updated env examples
This commit is contained in:
@@ -27,7 +27,12 @@ PINCHFLAT_SECRET_KEY=
|
|||||||
# Controls default permissions on created files (022 = owner rw, group/other r)
|
# Controls default permissions on created files (022 = owner rw, group/other r)
|
||||||
PINCHFLAT_UMASK=022
|
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
|
# IP address or hostname of the NFS server
|
||||||
PINCHFLAT_NFS_SERVER=192.168.1.x
|
PINCHFLAT_NFS_SERVER=192.168.1.x
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user