Folders, port and image are written straight into compose.yaml; the KANAME_DATA_DIR, KANAME_MODELS_DIR, WEB_PORT and KANAME_IMAGE variables are gone. .env.example is down to the settings people actually set. README and CHANGELOG updated accordingly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
# Kaname: put this file and a filled-in .env (from .env.example) in one folder, then
|
|
# docker compose up -d
|
|
name: kaname
|
|
|
|
services:
|
|
web:
|
|
image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest}
|
|
env_file: .env
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./data:/data
|
|
restart: unless-stopped
|
|
|
|
worker:
|
|
image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest}
|
|
command: worker
|
|
env_file: .env
|
|
environment:
|
|
SANDBOX_DIR: /sandbox
|
|
volumes:
|
|
- ./data:/data
|
|
- ./models:/models # where models are downloaded to, e.g. /mnt/models
|
|
- sandbox:/sandbox
|
|
restart: unless-stopped
|
|
|
|
# Runs the coding answers of the quality eval (Python written by the model under test), locked
|
|
# down: no network, no secrets, read-only. Optional: without it the eval skips the coding part.
|
|
sandbox:
|
|
image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest}
|
|
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:
|
|
sandbox:
|