Skip to Content
The Ngamia platform API is in preview. Endpoints may change before general availability.
Self-hostingOverview

Self-hosting

The whole platform runs from the deploy/ folder of the monorepo with Docker Compose. Two ways to run it:

SetupUse whenGuide
Compose with CaddyA dedicated host: Caddy owns ports 80/443 and gets certificates itselfDocker Compose stack
systemd behind nginxA 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):

ServiceBuilt fromRole
platform, platform-migratePLATFORM/DockerfilePublic API
kida, kida-migrateKIDA/DockerfileIdentity
nak, nak-migrateNAK/deploy/runtime.DockerfileAgent runtime
ubongo, ubongo-parser, clamavUBONGO/deploy/docker/DockerfileKnowledge
postgrespostgres:16Databases for KIDA, platform, NAK, TE (TLS, one role and database each)
te (profile tools)TE imageBusiness tools, optional
kumbukumbu (profile memory)KUMBUKUMBU imageMemory, 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, callback https://<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