Lewati ke konten
Deployment | Omni Manual Book

Deployment

Men-deploy Omni ke production — Docker, Kubernetes, observability, dan keamanan.

Panduan deployment Omni ke production.

Berikut alur deployment dari awal hingga akhir:

Alur deployment

Omni dapat di-deploy menggunakan Docker atau Kubernetes.

bun run --filter @omni/backend build
bun run --filter @omni/frontend build
docker build -t omni-backend backend
docker build -t finance-frontend frontend

Manifest tersedia di infrastructure/k8s/ (namespace, configmap, secret, deployments backend/frontend/postgres/redis, ingress, network policies).

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.