added bindery
This commit is contained in:
1 parent
ccdc43a671
commit
b8b9b4143d
3 files changed
+70
No files matched your search
@@ -0,0 +1,33 @@
|
||||
# Bindery
|
||||
|
||||
# Docker image tag to use (e.g. "latest" or a pinned version like "1.2.3")
|
||||
BINDERY_VERSION=latest
|
||||
|
||||
# IANA timezone name for the container (e.g. America/Chicago, America/New_York)
|
||||
BINDERY_TZ=America/Los_Angeles
|
||||
|
||||
# Host port to expose the Bindery web UI on
|
||||
BINDERY_PORT=8787
|
||||
|
||||
# UID:GID the container runs as — must own (or have rw on) the NFS export and bind mount paths below
|
||||
BINDERY_UID=1000
|
||||
BINDERY_GID=1000
|
||||
|
||||
# Log verbosity (debug, info, warn, error)
|
||||
BINDERY_LOG_LEVEL=info
|
||||
|
||||
# Bind mounts
|
||||
|
||||
# Host path for the book library (e.g. /mnt/media/books)
|
||||
BINDERY_BOOKS=/mnt/path/to/books
|
||||
|
||||
# Host path for the download client's completed downloads (e.g. /mnt/downloads)
|
||||
BINDERY_DOWNLOADS=/mnt/path/to/downloads
|
||||
|
||||
# NFS (config volume)
|
||||
|
||||
# IP address or hostname of the NFS server
|
||||
BINDERY_NFS_SERVER=192.168.1.x
|
||||
|
||||
# NFS export path for config, SQLite DB and backups (e.g. :/mnt/pool/bindery)
|
||||
BINDERY_NFS_DEVICE=:/path/to/nfs/share
|
||||
@@ -0,0 +1,36 @@
|
||||
services:
|
||||
app:
|
||||
image: ghcr.io/vavallee/bindery:${BINDERY_VERSION:-latest}
|
||||
container_name: bindery-app
|
||||
# Image is distroless and can't switch users at runtime — this UID:GID must own the NFS export and bind mount paths
|
||||
user: "${BINDERY_UID:-1000}:${BINDERY_GID:-1000}"
|
||||
environment:
|
||||
- TZ=${BINDERY_TZ:-America/Los_Angeles}
|
||||
- BINDERY_LOG_LEVEL=${BINDERY_LOG_LEVEL:-info}
|
||||
ports:
|
||||
- ${BINDERY_PORT:-8787}:8787
|
||||
volumes:
|
||||
- bindery-config:/config
|
||||
- ${BINDERY_BOOKS}:/books
|
||||
- ${BINDERY_DOWNLOADS}:/downloads
|
||||
# No shell/curl in the distroless image — test is inherited from the image's built-in
|
||||
# HEALTHCHECK (runs the binary's healthcheck subcommand against /api/v1/health)
|
||||
healthcheck:
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
bindery-config:
|
||||
name: bindery-config
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr=${BINDERY_NFS_SERVER},rw,noatime,rsize=65536,wsize=65536,timeo=600,nfsvers=4"
|
||||
device: "${BINDERY_NFS_DEVICE}"
|
||||
Reference in new issue
Block a user