feat(devops): unify frontend docker build and root env injection
This commit is contained in:
+16
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user