Skip to content

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 ​

ProcessCommandHolds
migrateorbit migrate, one shotthe owner login, nothing else serves with it
auth-migratesidecar migrations, one shotthe auth migrator login
auththe Better Auth sidecarthe auth runtime login; reached through web only
weborbit --role webruntime and doors logins, the data key
workerorbit --role worker,schedulerruntime 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 ​

  1. Generate the secrets and start the stack:
    bash
    deploy/gen-env.sh                                       # deploy/.env
    docker compose -f deploy/docker-compose.yml up -d --wait
  2. 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
  3. 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.

ComposeChart
postgresnone: bring your own PostgreSQL 16+
migrate, auth-migratepre-install and pre-upgrade hook Jobs
authDeployment and Service, reached by web only
webDeployment, Service, PodDisruptionBudget, optional HPA and Ingress
worker-worker and -scheduler Deployments (the scheduler is one replica)
storage volumea PersistentVolumeClaim, kept on uninstall
  1. Create the database logins and grants with deploy/postgres/init (see the README).
  2. Put every secret group in an existing Secret (existingSecret) for production.
  3. 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
  4. Follow the printed notes: the first user in the -auth pod, then orbit tenant provision in 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 sidecar

The 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 ​

Orbit by SkySync Tech. Licensed under AGPL-3.0.