Appearance
Deployment
Orbit ships as two images: orbit (the binary, the web app and these docs) and the auth sidecar. Postgres 16+ is the only other requirement. Full details, including TLS, managed Postgres and platform templates, are in deploy/README.md.
Not for the internet yet
Orbit has no release and is not ready to run anywhere reachable from the internet. See the open items in the security model.
What runs
| Process | Command | Holds |
|---|---|---|
migrate | orbit migrate, one shot | the owner login, nothing else serves with it |
auth-migrate | sidecar migrations, one shot | the auth migrator login |
auth | the Better Auth sidecar | the auth runtime login; reached through web only |
web | orbit --role web | runtime and doors logins, the data key |
worker | orbit --role worker,scheduler | runtime and worker logins, the data key |
web serves one origin: the web app on /, these docs on /docs/, /graphql, /mcp, /scim/v2, /files, /health, /ready, and a proxy for /api/auth/*, so the session cookie is first-party.
Docker Compose
- Generate the secrets and start the stack:bash
deploy/gen-env.sh # deploy/.env docker compose -f deploy/docker-compose.yml up -d --wait - Create the first user, organisation and tenant (prompts for a password; pass module ids after the organisation name):bash
deploy/bootstrap.sh you@example.com "Your Name" "Acme" core leave attendance - Open http://localhost:8080 and sign in.
deploy/smoke.sh runs the whole flow on a throwaway project and checks it.
Upgrades: back up the pgdata volume and keep ORBIT_DATA_KEY backed up on its own, then docker compose -f deploy/docker-compose.yml up -d --build --wait. It reruns both migrations before restarting the serving containers.
Back up ORBIT_DATA_KEY
Personal data is encrypted with keys derived from it, and it never enters the database. Lose it and that data can't be read.
Kubernetes (Helm)
The chart in deploy/helm/orbit (Helm 3, Kubernetes 1.30+) runs the same images, processes and credentials. It is linted and schema-checked in CI but has not been installed on a cluster yet.
| Compose | Chart |
|---|---|
postgres | none: bring your own PostgreSQL 16+ |
migrate, auth-migrate | pre-install and pre-upgrade hook Jobs |
auth | Deployment and Service, reached by web only |
web | Deployment, Service, PodDisruptionBudget, optional HPA and Ingress |
worker | -worker and -scheduler Deployments (the scheduler is one replica) |
storage volume | a PersistentVolumeClaim, kept on uninstall |
- Create the database logins and grants with
deploy/postgres/init(see the README). - Put every secret group in an existing Secret (
existingSecret) for production. - Install, with a timeout of at least the migration Jobs' deadline:bash
helm upgrade --install orbit deploy/helm/orbit -f my-values.yaml --timeout 15m - Follow the printed notes: the first user in the
-authpod, thenorbit tenant provisionin the toolbox.
The docs need nothing extra: they are part of the orbit image.
Images
bash
docker build -t orbit:<tag> . # binary, web app and docs
docker build -t orbit-auth:<tag> services/auth # the sidecarThe orbit image builds the web app and the docs in their own stages (--target web, --target docs) and serves both from ORBIT_WEB_DIR (/srv/orbit/web, docs in /srv/orbit/web/docs).
Day-two operations
- Operator guide: install, organisations, upgrades, backup, keys.
- Operations:
orbit migrate,tenant provision,keys,health. - Releases and upgrades.