Appearance
Hosting and delivery
The runtime is a Terraform-managed set of Docker containers spread across two machines: a small always-on edge host that runs the orchestration, services and data layer, and a GPU workstation called the Local AI server that runs local model inference. Changes reach both through the same delivery path, which treats infrastructure as reviewed code rather than as hand-edited servers.
Topology
| Host | Role | Notes |
|---|---|---|
| Edge host | Gateway, orchestration, services, data, monitoring | Always on; builds its own component images locally |
| Local AI server | Local model inference and related helpers | Reached only through the model gateway |
| Hosted providers | Frontier and specialised models | Reached only through the model gateway |
Delivery path
- Work starts in a merge request. CI builds the component images that changed and runs a Terraform plan.
- Images are built on the host that runs them and tagged from commit-derived identifiers, so each deployment is pinned to exactly the code it was planned against.
- Merge requests never apply. Only the main branch applies the saved plan that was reviewed, so what runs is what was approved.
- Terraform state lives in the GitLab-managed HTTP backend, giving one authoritative state with a production lock.
- Shared resources such as the container network and persistent volumes are declared once and referenced by every component.
Operating the runtime
- Components can be disabled through configuration. A disabled container is stopped, not deleted, and its data volumes stay intact.
- Secrets are supplied as masked CI variables and never committed; state access and the Docker daemon are treated as sensitive.
- Some changes are deliberately gated: a database or identity-related change is reviewed in the plan before it reaches a live system.
Related pages
Design decisions
- Local images, no registry. Images are built where they run, which removes a registry dependency for a single-site platform. The trade-off is that the build runner must sit on the host itself.
- Saved plans, not live applies. Applying the exact reviewed plan prevents drift between review and production.
- Separate state per concern. Keeping the runtime in its own Terraform root limits blast radius and lock contention.
- Disable rather than destroy. Turning a service off is a configuration change that preserves data, so experiments are cheap to pause.
- Verify beyond the container. A running container is not proof of a working service; post-deploy checks target application responses.