Files
Kaname/deploy/compose.yaml
T
Pascal LinxweilerandClaude Opus 5.5 fbcdcf2e2d Slim down server compose: entrypoint roles, self-migrating image
- docker-entrypoint.sh: `web` (default) or `worker`; both apply pending
  migrations under a flock on /data, so no start-order dependency
- docker-healthcheck.sh baked into the image for both roles
- deploy/compose.yaml reduced to image, role, env file, volumes, port
- dist/migrate.mjs bundled alongside the worker

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 17:30:49 +02:00

21 lines
645 B
YAML

# Server setup: put this file and a filled-in .env (from .env.example) in a folder, then
# docker compose pull && docker compose up -d
services:
worker:
image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest}
command: worker
env_file: .env
volumes: [data:/data, models:/models]
restart: unless-stopped
web:
image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest}
env_file: .env
ports: ["3000:3000"]
volumes: [data:/data]
restart: unless-stopped
volumes:
data: # SQLite + hf home: keep on local disk
models: # downloaded models (later: NFS from TrueNAS)