Deployment
Men-deploy Omni ke production — Docker, Kubernetes, observability, dan keamanan.
Panduan deployment Omni ke production.
Alur deployment
Section titled “Alur deployment”Berikut alur deployment dari awal hingga akhir:
Belum ada tangkapan layar — jalankan `bun run capture`.
Pendekatan
Section titled “Pendekatan”Omni dapat di-deploy menggunakan Docker atau 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”Manifest tersedia di infrastructure/k8s/ (namespace, configmap, secret, deployments backend/frontend/postgres/redis, ingress, network policies).
Langkah umum
Section titled “Langkah umum” Siapkan environment
Isi variabel env production (DB, Redis, JWT, keamanan).
Jalankan migrasi & seed
Pastikan migrasi dan seed berjalan (backend migrationsRun).
Deploy backend & frontend
Deploy image backend (API) dan frontend (SPA).
Smoke-test
Verifikasi endpoint health API dan alur login yang representatif.
Aktifkan observability
Aktifkan Prometheus/Grafana (infrastructure/monitoring) untuk pemantauan.
Checklist pra-deployment
- RLS_ENABLED=true, PII_MASKING=true, AV_FAIL_CLOSED=true.
- JWT issuer/audience di-set.
- httpOnly cookie untuk refresh token.
- Secret disimpan di secret manager (bukan di kode).
- Prosedur backup & restore sudah diuji.