Files
Deep-Package-Inspection/docker-compose.prod.yml
T

52 lines
2.3 KiB
YAML

version: '3.8'
# ─────────────────────────────────────────────────────────────
# BackOne DPI - Production Docker Compose
# ─────────────────────────────────────────────────────────────
# Usage:
# 1. Copy .env.production.example to .env.production
# 2. Fill in your actual values in .env.production
# 3. Run: docker compose -f docker-compose.prod.yml up -d
# ─────────────────────────────────────────────────────────────
services:
backend:
image: git.proit.id/ypratama/deep-package-inspection/backone-backend-bun:latest
container_name: backone_backend_prod
restart: always
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- MONGODB_URI=${MONGODB_URI}
- BACKEND_PORT=${BACKEND_PORT:-3001}
- JWT_SECRET=${JWT_SECRET:-super-secret-backone-key}
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
- BACKONE_DPI_API_KEY=${NETIFY_API_KEY}
- BACKONE_API_KEY=${NETIFY_API_KEY:-sk_db_source2}
- BACKONE_ORG_UUID=${NETIFY_ORG_UUID}
- BACKONE_SITE_UUID=${NETIFY_SITE_UUID}
- BACKONE_SITE_UUIDS=${NETIFY_SITE_UUIDS}
- BACKONE_INFORMATICS_BASE_URL=${NETIFY_INFORMATICS_BASE_URL}
frontend:
image: git.proit.id/ypratama/deep-package-inspection/backone-frontend:v2
container_name: backone_frontend_prod
restart: always
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
- INTERNAL_API_URL=${INTERNAL_API_URL:-http://backone-inspect-backend-bun-0:3001}
- JWT_SECRET=${JWT_SECRET:-super-secret-backone-key}
- MONGODB_URI=${MONGODB_URI}
- BACKONE_API_KEY=${NETIFY_API_KEY:-sk_db_source2}
- BACKONE_DPI_API_KEY=${NETIFY_API_KEY}
- BACKONE_SITE_UUID=${NETIFY_SITE_UUID}
- BACKONE_SITE_UUIDS=${NETIFY_SITE_UUIDS}
- BACKONE_INFORMATICS_BASE_URL=${NETIFY_INFORMATICS_BASE_URL}
- BACKONE_TOKEN=${NETIFY_TOKEN}
depends_on:
- backend