feat(book-dock): support custom container directory via BOOK_DOCK_PATH

The Book Dock directory inside the container was previously hardcoded to `/data/book-dock`. This adds support for the `BOOK_DOCK_PATH` environment variable, allowing users to customize the internal container directory where the Book Dock monitors for files. If the environment variable is not set, it defaults to the `book-dock` folder inside the configured app data path. This replaces the `BOOK_DROP_HOST_PATH` volume mapping in the compose file with a standard volume and environment variable approach.

Closes #178
This commit is contained in:
neon
2026-06-01 23:56:21 +00:00
parent f20efdeedd
commit 3a349c83b1
14 changed files with 91 additions and 43 deletions
+1 -7
View File
@@ -8,12 +8,6 @@ APP_PORT=3000
# Point this at your library root; use an absolute path on NAS/Portainer installs.
BOOKS_HOST_PATH=./books
# Optional: host folder for the Book Dock drop zone (maps to /data/book-dock inside the container).
# Copy or move ebook files here and they will be automatically picked up and processed by Book Dock.
# If not set, the drop folder lives inside ./data/app/book-dock (the default app data volume).
# Use an absolute path when mounting a NAS share or a folder managed outside the app data directory.
# BOOK_DROP_HOST_PATH=/mnt/nas/book-drop
# Container runtime UID/GID for files written to app-managed data folders.
# Most users can leave these defaults.
PUID=1000
@@ -32,7 +26,7 @@ SETUP_BOOTSTRAP_TOKEN=change-this-to-a-long-random-secret
# External/public URL used by emails and Kobo endpoints
APP_URL=https://bookorbit.example.com
# Node.js JavaScript heap limit in MB. Raise this for very large libraries.
# Node.js JavaScript heap limit in MB. Raise this for very large libraries, 250K+ books.
NODE_MAX_OLD_SPACE_SIZE=2048
# --- Optional overrides (uncomment to set) ---