# 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: