Infrastructure Design π‘ BETA
Use this runbook for the reference single-host topology: Incus containers, host-mounted data and Caddy at the edge.

When to use
- Provisioning or auditing the production host described in the root
AGENTS.md.
- Planning a backup or a container restart.
- Do not use it for Kubernetes; that target is not supported.
Before you start
| Item |
Authority |
| Container layer |
Incus only (incus CLI, images:ubuntu/24.04); no lxc/lxd. |
| Base paths |
/opt/gbo/data, /opt/gbo/bin, /opt/gbo/conf, /opt/gbo/logs. |
| Ports |
Root AGENTS.md: API 8080, suite 3000, cloud 4000, login 5000; Forgejo 4747. |
| Component versions |
botserver/3rdparty.toml. |
| Secrets |
Vault; never stored in this book or in a container image. |
| Backups |
Copy to /tmp first; snapshot before a change. |
Steps
- Create or inspect the instances with
incus list. The platform names are bot/system, vault, tables, cache, drive, directory, meet, vectordb, llm, email, alm, alm-ci, proxy, dns and webmail.
- Keep each service inside its own container and keep data on host mounts so an instance can be replaced without losing data.
- Route external traffic through Caddy in the
proxy container. Validate before reloading:
bash
incus exec proxy -- /opt/gbo/bin/caddy validate --adapter caddyfile --config /opt/gbo/conf/config
incus exec proxy -- /opt/gbo/bin/caddy reload --adapter caddyfile --config /opt/gbo/conf/config
- Maintain NAT rules in
/etc/iptables.rules; use the external interface for DNAT so loopback traffic is not broken.
- Take a snapshot before any update:
incus snapshot create <container> pre-change-$(date +%Y%m%d%H%M%S).
Verify
| Check |
Command / expected result |
| Container state |
incus list --format csv shows each expected instance running. |
| Processes |
incus exec <container> -- pgrep -a <process> finds the service. |
| Health |
curl -s http://localhost:8080/health returns 200 from the bot/system container. |
| Caddy |
caddy validate passes before every reload. |
| Routing |
Page <title> matches the expected page; a 200 alone is not proof because Caddy falls back to the home page. |
| Ports |
incus exec <container> -- ss -tlnp shows the documented listeners only. |
Roll back
- Restore the snapshot:
incus copy <container>/<snapshot> <container>-restored, inspect it, then swap names.
- Restore a configuration file from the
/tmp copy made before the edit; never overwrite a live root in place.
- Validate and reload Caddy again, then re-run the Verify table.
- For database restores use the documented backup path; see Backup API.
Limits
| Claim |
Status |
| Hardware sizing, CPU cores or RAM figures |
Not asserted; size from measured load. |
| Forgejo |
Listens on 4747; the suite front end is on a different port (root AGENTS.md). |
| Container runtime |
Incus only; raw.lxc is an Incus config key and is not LXC support. |
| Email ports |
25, 465, 587, 993 (root AGENTS.md). |
| Appliance profile |
See AI OS appliance; do not infer it from this topology. |