added bindery

This commit is contained in:
derekc committed 2026-11-04 21:45:53 -08:00
1 parent ccdc43a671
commit b8b9b4143d
3 files changed
+70

No files matched your search

+36
View File
@@ -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}"