feat(devops): make web port configurable via environment variables
This commit is contained in:
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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 "======================================"
|
||||||
|
|||||||
Reference in New Issue
Block a user