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

+9
View File
@@ -39,9 +39,18 @@ On the server you only need `deploy/compose.yaml` and a filled-in `.env` (from `
one folder; no source code, no Dockerfile:
```bash
mkdir -p data && sudo chown 1000:1000 data # SQLite DB, shared by web and worker (local disk!)
docker compose pull && docker compose up -d
```
Storage layout on the server:
- `KANAME_DATA_DIR` (default `./data`): bind mount for the SQLite DB, mounted by both services.
Must be on local disk (SQLite breaks on NFS) and owned by uid 1000.
- `models`: NFS volume from `NFS_SERVER`/`NFS_EXPORT`, mounted only by the worker. Use NFSv4
(hf needs file locks) and make the dataset writable for uid 1000 (owner 1000, or TrueNAS
*Mapall User/Group*). After changing NFS settings: `docker compose down && docker volume rm kaname_models`.
Pin a version with `KANAME_VERSION=0.4.0` in `.env`; the running version is shown next to the app
name in the header.