Fix CORS and API URLs for container communication

This commit is contained in:
Zhi
2026-03-14 08:49:12 +00:00
parent b44267aac0
commit 99ca422c3d
3 changed files with 7 additions and 3 deletions

View File

@@ -32,6 +32,7 @@ services:
CONFIG_DIR: /config
LISTEN_ADDR: "0.0.0.0:${WIZARD_PORT:-8080}"
MAX_BACKUPS: "5"
# Internal network only
CORS_ORIGINS: http://frontend:${FRONTEND_PORT:-3000}
ports:
- "127.0.0.1:${WIZARD_PORT:-8080}:${WIZARD_PORT:-8080}"
@@ -67,6 +68,7 @@ services:
container_name: harborforge-test-frontend
restart: "no"
environment:
# Use internal service name
VITE_API_BASE_URL: http://backend:${BACKEND_PORT:-8000}
networks:
- test-network