feat(devops): make web port configurable via environment variables

This commit is contained in:
datadunia
2026-05-16 02:56:35 +07:00
parent ad80ad0c08
commit f9ab85e001
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -21,6 +21,7 @@ SERVER_SALT=GantiDenganKunciGaramUntukWireGuard256Bit
NFTABLES_TABLE=nexusguard NFTABLES_TABLE=nexusguard
IPAM_POOL=10.8.0.0/16 IPAM_POOL=10.8.0.0/16
API_PORT=8080 API_PORT=8080
WEB_PORT=80
# 5. Dashboard UI (Frontend Build Configuration) # 5. Dashboard UI (Frontend Build Configuration)
# URL API yang akan diakses oleh web browser client # URL API yang akan diakses oleh web browser client
+1 -1
View File
@@ -68,7 +68,7 @@ services:
# Inject the root .env variable into the frontend build process # Inject the root .env variable into the frontend build process
VITE_API_BASE_URL: ${VITE_API_BASE_URL} VITE_API_BASE_URL: ${VITE_API_BASE_URL}
ports: ports:
- "80:80" - "${WEB_PORT:-80}:80"
depends_on: depends_on:
- server-core - server-core
restart: unless-stopped restart: unless-stopped
+1 -1
View File
@@ -48,6 +48,6 @@ docker-compose up -d
echo "======================================" echo "======================================"
echo " NexusGuard is successfully running! " echo " NexusGuard is successfully running! "
echo " Web Dashboard : http://localhost" echo " Web Dashboard : http://localhost:${WEB_PORT:-80}"
echo " API Port : ${API_PORT:-8080}" echo " API Port : ${API_PORT:-8080}"
echo "======================================" echo "======================================"
+1 -1
View File
@@ -29,6 +29,6 @@ docker image prune -f
echo "======================================" echo "======================================"
echo " Upgrade & Rebuild complete! " echo " Upgrade & Rebuild complete! "
echo " Dashboard : http://localhost" echo " Dashboard : http://localhost:${WEB_PORT:-80}"
echo " API Port : ${API_PORT:-8080}" echo " API Port : ${API_PORT:-8080}"
echo "======================================" echo "======================================"