# Builds the image from this checkout. For the server use deploy/compose.yaml (released image). name: kaname services: web: build: . image: kaname:local env_file: .env environment: DATABASE_URL: file:/data/app.db # container paths win over local-dev paths in .env MODELS_DIR: /models ports: - "3000:3000" volumes: - data:/data restart: unless-stopped worker: image: kaname:local command: worker env_file: .env environment: DATABASE_URL: file:/data/app.db MODELS_DIR: /models SANDBOX_DIR: /sandbox volumes: - data:/data - models:/models - sandbox:/sandbox depends_on: [web] restart: unless-stopped sandbox: image: kaname:local command: sandbox user: "65534:65534" network_mode: none read_only: true tmpfs: - /tmp:size=64m,mode=1777 cap_drop: [ALL] security_opt: ["no-new-privileges:true"] mem_limit: 512m pids_limit: 64 cpus: 1 volumes: - sandbox:/sandbox depends_on: [worker] restart: unless-stopped volumes: data: models: sandbox: