Self-hosting
The whole platform runs from the deploy/
folder of the monorepo with Docker Compose. Two ways to run it:
| Setup | Use when | Guide |
|---|---|---|
| Compose with Caddy | A dedicated host: Caddy owns ports 80/443 and gets certificates itself | Docker Compose stack |
| systemd behind nginx | A shared host whose nginx already serves other sites: native services, no Docker (how api.ngamia.com runs) | Shared VPS with systemd |
The Compose setups run these services (on systemd they are native binaries, with PostgreSQL and ClamAV from the host):
| Service | Built from | Role |
|---|---|---|
platform, platform-migrate | PLATFORM/Dockerfile | Public API |
kida, kida-migrate | KIDA/Dockerfile | Identity |
nak, nak-migrate | NAK/deploy/runtime.Dockerfile | Agent runtime |
ubongo, ubongo-parser, clamav | UBONGO/deploy/docker/Dockerfile | Knowledge |
postgres | postgres:16 | Databases for KIDA, platform, NAK, TE (TLS, one role and database each) |
te (profile tools) | TE image | Business tools, optional |
kumbukumbu (profile memory) | KUMBUKUMBU image | Memory, optional |
You need
- A Linux host with Docker Engine and Compose 2.24 or newer: 6 vCPU, 12 GB RAM and 10 GB free disk is enough to start.
- DNS records for your API host name.
- A Camel Accounts OAuth client for the platform, whose tokens KIDA accepts (Ngamia uses
ngamia-agent-web, callbackhttps://<api host>/v1/auth/camel/callback). - A MongoDB Atlas cluster with vector search, for knowledge.
- The Ngamia model gateway URL (
https://api.ngamia.cc/v1). - UBONGO’s embedding model files (see
UBONGO/models/…/MODEL_MANIFEST.txt; review the Gemma terms before launch).
Last updated on