# Kaname: put this file and a filled-in .env (from .env.example) in one folder, then # mkdir -p data models && sudo chown 1000:1000 data models # docker compose up -d name: kaname services: worker: image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest} command: worker env_file: .env environment: SANDBOX_DIR: /sandbox volumes: - ${KANAME_DATA_DIR:-./data}:/data # SQLite DB, shared with web (local disk, not NFS) - ${KANAME_MODELS_DIR:-./models}:/models # downloaded models (a host-mounted NAS share works) - sandbox:/sandbox # exchange folder with the code sandbox restart: unless-stopped web: image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest} env_file: .env ports: ["${WEB_PORT:-3000}:3000"] volumes: - ${KANAME_DATA_DIR:-./data}:/data restart: unless-stopped # Runs the quality eval's coding answers (Python written by the model under test) with no # network, a read-only root, no capabilities and small limits. It shares only the exchange folder # with the worker. Optional: without it the quality eval skips the coding section. sandbox: image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest} command: sandbox 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] restart: unless-stopped volumes: sandbox: