2026-11-06 22:20:06 +00:00
|
|
|
name: kvb-orchestrator
|
2026-11-06 08:28:04 +00:00
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
hub:
|
|
|
|
|
build: .
|
2026-11-06 22:20:06 +00:00
|
|
|
image: kvb-orchestrator:local
|
2026-11-06 08:28:04 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
init: true
|
2026-11-06 22:20:06 +00:00
|
|
|
user: "${KVB_ORCHESTRATOR_USER:?written into .env by scripts/install.sh}"
|
2026-11-06 08:28:04 +00:00
|
|
|
read_only: true
|
|
|
|
|
cap_drop:
|
|
|
|
|
- ALL
|
|
|
|
|
security_opt:
|
|
|
|
|
- no-new-privileges:true
|
|
|
|
|
mem_limit: 2g
|
|
|
|
|
pids_limit: 256
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "python3", "-c", "import socket; socket.create_connection(('127.0.0.1', 8080), 2).close()"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
|
|
|
|
ports:
|
2026-11-06 22:20:06 +00:00
|
|
|
- "127.0.0.1:${KVB_ORCHESTRATOR_PORT:?set in .env}:8080"
|
2026-11-06 08:28:04 +00:00
|
|
|
extra_hosts:
|
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
command:
|
|
|
|
|
- --bind
|
|
|
|
|
- 0.0.0.0
|
|
|
|
|
- --listen-port
|
|
|
|
|
- "8080"
|
|
|
|
|
- --public-port
|
2026-11-06 22:20:06 +00:00
|
|
|
- "${KVB_ORCHESTRATOR_PORT:?set in .env}"
|
2026-11-06 08:28:04 +00:00
|
|
|
- --council
|
|
|
|
|
- /tmp/agents-council
|
|
|
|
|
- --pages
|
|
|
|
|
- /tmp/kvb-git-diff
|
|
|
|
|
- --state
|
|
|
|
|
- /state
|
|
|
|
|
- --host-state
|
2026-11-06 22:20:06 +00:00
|
|
|
- "${KVB_ORCHESTRATOR_STATE:?written into .env by scripts/install.sh}"
|
2026-11-06 08:28:04 +00:00
|
|
|
- --skills
|
|
|
|
|
- /skills
|
|
|
|
|
- --transcripts
|
|
|
|
|
- /projects
|
|
|
|
|
- --templates
|
|
|
|
|
- /app/templates
|
2026-11-07 06:51:49 +00:00
|
|
|
- --tree-file
|
|
|
|
|
- /tree/branch-tree.json
|
2026-11-06 08:28:04 +00:00
|
|
|
- --timers
|
|
|
|
|
- /timers
|
|
|
|
|
- --llm-url
|
2026-11-06 22:20:06 +00:00
|
|
|
- "${KVB_ORCHESTRATOR_LLM_URL}"
|
2026-11-06 08:28:04 +00:00
|
|
|
- --llm-model
|
2026-11-06 22:20:06 +00:00
|
|
|
- "${KVB_ORCHESTRATOR_LLM_MODEL}"
|
2026-11-06 08:28:04 +00:00
|
|
|
- --llm-key-file
|
2026-11-06 22:20:06 +00:00
|
|
|
- /run/kvb-orchestrator/llm.key
|
2026-11-06 08:28:04 +00:00
|
|
|
- --piper
|
|
|
|
|
- /opt/piper/bin/piper
|
|
|
|
|
- --voices
|
|
|
|
|
- /opt/voices
|
|
|
|
|
- --operator-voice
|
2026-11-06 22:20:06 +00:00
|
|
|
- "${KVB_ORCHESTRATOR_OPERATOR_VOICE:?set in .env}"
|
2026-11-06 08:28:04 +00:00
|
|
|
- --whisper
|
|
|
|
|
- /opt/whisper/whisper-cli
|
|
|
|
|
- --whisper-model
|
|
|
|
|
- /opt/whisper/ggml-base-q8_0.bin
|
|
|
|
|
- --scratch
|
|
|
|
|
- /scratch
|
|
|
|
|
- --approvers
|
|
|
|
|
- /approvers/approvers.json
|
|
|
|
|
tmpfs:
|
|
|
|
|
- /scratch:size=64m,mode=1777,noexec,nosuid,nodev
|
|
|
|
|
volumes:
|
|
|
|
|
- type: bind
|
|
|
|
|
source: /tmp
|
|
|
|
|
target: /tmp
|
|
|
|
|
read_only: true
|
|
|
|
|
- type: bind
|
2026-11-06 22:20:06 +00:00
|
|
|
source: "${KVB_ORCHESTRATOR_COUNCIL:?written into .env by scripts/install.sh}"
|
2026-11-06 08:28:04 +00:00
|
|
|
target: /tmp/agents-council
|
|
|
|
|
bind:
|
|
|
|
|
create_host_path: false
|
|
|
|
|
- type: bind
|
2026-11-06 22:20:06 +00:00
|
|
|
source: "${KVB_ORCHESTRATOR_SKILLS:?written into .env by scripts/install.sh}"
|
2026-11-06 08:28:04 +00:00
|
|
|
target: /skills
|
|
|
|
|
read_only: true
|
|
|
|
|
bind:
|
|
|
|
|
create_host_path: false
|
|
|
|
|
- type: bind
|
2026-11-06 22:20:06 +00:00
|
|
|
source: "${KVB_ORCHESTRATOR_PROJECTS:?written into .env by scripts/install.sh}"
|
2026-11-06 08:28:04 +00:00
|
|
|
target: /projects
|
|
|
|
|
read_only: true
|
|
|
|
|
bind:
|
|
|
|
|
create_host_path: false
|
|
|
|
|
- type: bind
|
2026-11-06 22:20:06 +00:00
|
|
|
source: "${KVB_ORCHESTRATOR_STATE:?written into .env by scripts/install.sh}"
|
2026-11-06 08:28:04 +00:00
|
|
|
target: /state
|
|
|
|
|
bind:
|
|
|
|
|
create_host_path: false
|
|
|
|
|
- type: bind
|
2026-11-07 06:51:49 +00:00
|
|
|
# the directory, not the file: pkgmgr replaces the file, and a file mount keeps showing the old inode
|
|
|
|
|
source: "${KVB_ORCHESTRATOR_TREE:?written into .env by scripts/orchestrator.sh}"
|
|
|
|
|
target: /tree
|
2026-11-06 08:28:04 +00:00
|
|
|
read_only: true
|
|
|
|
|
bind:
|
|
|
|
|
create_host_path: false
|
|
|
|
|
- type: bind
|
2026-11-06 22:20:06 +00:00
|
|
|
source: "${KVB_ORCHESTRATOR_TIMERS:?written into .env by scripts/install.sh}"
|
2026-11-06 08:28:04 +00:00
|
|
|
target: /timers
|
|
|
|
|
read_only: true
|
|
|
|
|
bind:
|
|
|
|
|
create_host_path: false
|
|
|
|
|
- type: bind
|
2026-11-06 22:20:06 +00:00
|
|
|
source: "${KVB_ORCHESTRATOR_APPROVERS:?written into .env by scripts/install.sh}"
|
2026-11-06 08:28:04 +00:00
|
|
|
target: /approvers
|
|
|
|
|
read_only: true
|
|
|
|
|
bind:
|
|
|
|
|
create_host_path: false
|
|
|
|
|
- type: bind
|
|
|
|
|
# /dev/null is an empty key file, which server.py --llm-key-file reads as no key
|
2026-11-06 22:20:06 +00:00
|
|
|
source: "${KVB_ORCHESTRATOR_LLM_KEY_FILE:-/dev/null}"
|
|
|
|
|
target: /run/kvb-orchestrator/llm.key
|
2026-11-06 08:28:04 +00:00
|
|
|
read_only: true
|
|
|
|
|
bind:
|
|
|
|
|
create_host_path: false
|