Files
Kaname/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

29 lines
563 B
YAML

# Builds the image from this checkout. For the server use deploy/compose.yaml (released image).
name: kaname
x-app: &app
image: kaname:local
build: .
env_file: .env
# Container paths win over local-dev paths in .env.
environment:
DATABASE_URL: file:/data/app.db
MODELS_DIR: /models
HF_HOME: /data/hf-home
restart: unless-stopped
services:
worker:
<<: *app
command: worker
volumes: [data:/data, models:/models]
web:
<<: *app
ports: ["${WEB_PORT:-3000}:3000"]
volumes: [data:/data]
volumes:
data:
models: