Deploy compose: shared DB bind mount, models on NFS

- deploy/compose.yaml: KANAME_DATA_DIR bind mount (SQLite) for web and
  worker, NFSv4 volume for models (worker only), configured via .env
- entrypoint fails fast with a chown hint if /data or /models isn't writable
- .env.example and README document the server storage layout

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-05 17:34:44 +02:00
1 parent fbcdcf2e2d
commit e73b019492
5 files changed
+51 -6

No files matched your search

+3
View File
@@ -14,6 +14,9 @@ step 1 (Hugging Face downloader) is released as a minor version.
20 lines: the image now has an entrypoint with roles (`web`/`worker`), runs migrations itself
under a file lock (no start-order dependency between the services) and has a built-in
healthcheck.
- Server storage: SQLite on a shared host folder (`KANAME_DATA_DIR`, bind mount for web and worker),
models on an NFSv4 volume (`NFS_SERVER`, `NFS_EXPORT`) mounted only by the worker.
- The container stops with a clear message if `/data` (or `/models` for the worker) isn't writable.
- The app version is shown next to the app name (`APP_VERSION`, set at image build time).
### Changed