Files
archie/config.docker.toml
T
sam d80401d595 feat: add config overlay and shared RPC/Yaegi packages
- Introduce `-config-overlay` flag and `config.LoadOverlay()` to merge a base config with an overlay file, only overriding fields the overlay sets. This enables docker-compose to mount the base config from the host and apply only deployment-specific overrides.
- Create `internal/natsrpc` package with reusable NATS request/reply primitives (Envelope, Client, Call, RegisterAll, Respond). Migrate storerpc, worktreerpc, and forgerpc to use it, eliminating duplicated marshal/unmarshal and error handling.
- Create `internal/yaegiutil` package with shared interpreter construction (stdlib + extra symbols), generic export resolution (Resolve), and panic recovery (Safe). Migrate all Yaegi-based surfaces (gate scripts, daemon plugins, skill plugins, workflow stages, skill scripts) to use it, reducing boilerplate and centralizing panic safety.
- Simplify `config.docker.toml` to contain only overlay fields (paths, container config) and remove the duplicated repos list – the base config is now the single source of truth.
- Update docker-compose.yml to pass both -config and -config-overlay flags and mount the base config from the host.
- Add tests for LoadOverlay, DockerConfigOverlaysExampleConfig, Envelope, and yaegiutil utilities.
2026-07-24 12:57:10 +10:00

26 lines
717 B
TOML

# Docker Compose overlay: only fields that differ from the base config.
# The daemon loads both — base config.toml first, then this file on top
# (config.LoadOverlay) — so config.toml (the same file inprocess mode
# reads) stays the single source of truth for bot_user, forge, dispatch,
# models, providers, budgets, and repos. See docker-compose.yml's
# `-config` / `-config-overlay` flags and volume mounts.
work_dir = "/var/lib/archie/work"
db_path = "/var/lib/archie/archie.db"
[agent]
mode = "nats"
[nats]
url = "nats://nats:4222"
[containers]
enabled = true
image = "git.catlow.cloud/sam/archie-agent:latest"
max_concurrency = 4
max_uptime = "60m"
pull_policy = "missing"
[web]
listen = "0.0.0.0:8484"