feat(devops): unify frontend docker build and root env injection

This commit is contained in:
datadunia
2026-05-16 02:32:52 +07:00
parent b4d15d72bd
commit 503f4b8c63
3 changed files with 37 additions and 31 deletions
+16 -2
View File
@@ -48,13 +48,12 @@ services:
- IPAM_POOL=10.8.0.0/16
- GIN_MODE=release
ports:
- "8080:8080"
- "${API_PORT:-8080}:8080"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
# Requires NET_ADMIN capability for nftables manipulation
cap_add:
- NET_ADMIN
- NET_RAW
@@ -62,6 +61,21 @@ services:
networks:
- nexusnet
dashboard-ui:
build:
context: ./apps/dashboard-ui
dockerfile: Dockerfile
args:
# Inject the root .env variable into the frontend build process
VITE_API_BASE_URL: ${VITE_API_BASE_URL}
ports:
- "80:80"
depends_on:
- server-core
restart: unless-stopped
networks:
- nexusnet
volumes:
pgdata:
redisdata: