Add separate compose files for port exposure options

- docker-compose-frontend.yml: No port exposure (default)
- docker-compose-frontend-expose.yml: Expose ports to host
- run-test-frontend.sh: Test script with --expose-port {on|off} option
- cleanup-frontend.sh: Cleanup script with --expose-port option
This commit is contained in:
Zhi
2026-03-14 08:08:50 +00:00
parent 3a9850cafb
commit 392e050caa
5 changed files with 239 additions and 11 deletions

View File

@@ -53,11 +53,6 @@ services:
SECRET_KEY: ${SECRET_KEY:-change_me_in_production}
LOG_LEVEL: ${LOG_LEVEL:-INFO}
DATABASE_URL: mysql+pymysql://harborforge:harborforge_pass@mysql:3306/harborforge
ports:
- "${MAP_BACKEND_PORT:- }:8000"
depends_on:
mysql:
condition: service_healthy
networks:
- test-network
@@ -73,11 +68,6 @@ services:
restart: "no"
environment:
VITE_API_BASE_URL: http://backend:8000
ports:
- "${MAP_FRONTEND_PORT:- }:3000"
depends_on:
- wizard
- backend
networks:
- test-network