Deployment
Deploy Omni to production — Docker, Kubernetes, observability, and security.
Guide to deploying Omni to production.
Deployment flow
Section titled “Deployment flow”Here is the end-to-end deployment flow:
Belum ada tangkapan layar — jalankan `bun run capture`.
Approaches
Section titled “Approaches”Omni can be deployed with Docker or Kubernetes.
Docker
Section titled “Docker”bun run --filter @omni/backend buildbun run --filter @omni/frontend builddocker build -t omni-backend backenddocker build -t finance-frontend frontendKubernetes
Section titled “Kubernetes”Manifests are in infrastructure/k8s/ (namespace, configmap, secret, backend/frontend/postgres/redis deployments, ingress, network policies).
General steps
Section titled “General steps” Prepare environment
Fill in production env vars (DB, Redis, JWT, security).
Run migrations & seed
Ensure migrations and seeds run (backend migrationsRun).
Deploy backend & frontend
Deploy backend (API) and frontend (SPA) images.
Smoke-test
Verify the API health endpoint and a representative login flow.
Enable observability
Enable Prometheus/Grafana (infrastructure/monitoring).
Pre-deployment checklist
- RLS_ENABLED=true, PII_MASKING=true, AV_FAIL_CLOSED=true.
- JWT issuer/audience set.
- httpOnly cookie for the refresh token.
- Secrets stored in a secret manager (not in code).
- Backup & restore procedure tested.