Files
Kaname/compose.yaml
T
Pascal LinxweilerandClaude Opus 5.5 5becfc47a0
Release / release (push) Successful in 4m33s
Release 0.16.0: new look, search, remove files, easier deploy
- Dot-matrix "Creation of Adam" page banners behind a floating menu,
  glass cards and tables, library header with live stats, table toolbar
  with pagination, Cmd/Ctrl+K search across models, endpoints, runs,
  tags, settings and actions.
- Remove single files from a model (selection + disk, via a worker job).
- Containers start as root to prepare folders and drop to PUID:PGID;
  AUTH_SECRET is generated when unset; sandbox runs as nobody;
  KANAME_IMAGE and image docs in the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 14:06:46 +01:00

54 lines
1.3 KiB
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
environment:
DATABASE_URL: file:/data/app.db
MODELS_DIR: /models
HF_HOME: /data/hf-home
SANDBOX_DIR: /sandbox
volumes: [data:/data, models:/models, sandbox:/sandbox]
web:
<<: *app
ports: ["${WEB_PORT:-3000}:3000"]
volumes: [data:/data]
# Runs the quality eval's coding answers (Python written by the model under test) with no
# network, a read-only root, no capabilities, small limits and an unprivileged user. It shares only
# the exchange folder with the worker. Optional: without it the quality eval skips coding.
sandbox:
image: kaname:local
command: sandbox
user: "65534:65534"
depends_on: [worker]
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:
data:
models:
sandbox: