Fix: Pass required backend environment variables to frontend service in docker-compose.prod.yml to prevent Server Components crash

This commit is contained in:
ypratama committed 2026-08-28 15:41:46 +07:00
1 parent beb80579f0
commit 793624a330
1 file changed
+7 -1
+7 -1
View File
@@ -30,7 +30,7 @@ services:
- BACKONE_INFORMATICS_BASE_URL=${BACKONE_INFORMATICS_BASE_URL}
frontend:
image: git.proit.id/ypratama/deep-package-inspection/backone-frontend:latest
image: git.proit.id/ypratama/deep-package-inspection/backone-frontend:v2
container_name: backone_frontend_prod
restart: always
ports:
@@ -38,5 +38,11 @@ services:
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
- INTERNAL_API_URL=${INTERNAL_API_URL:-http://backend:3001}
- MONGODB_URI=${MONGODB_URI}
- BACKONE_API_KEY=${BACKONE_API_KEY}
- BACKONE_DPI_API_KEY=${BACKONE_DPI_API_KEY}
- BACKONE_SITE_UUID=${BACKONE_SITE_UUID}
- BACKONE_INFORMATICS_BASE_URL=${BACKONE_INFORMATICS_BASE_URL}
depends_on:
- backend