Fix CORS and API URLs for container communication
This commit is contained in:
@@ -34,7 +34,8 @@ services:
|
||||
CONFIG_DIR: /config
|
||||
LISTEN_ADDR: "0.0.0.0:${WIZARD_PORT:-8080}"
|
||||
MAX_BACKUPS: "5"
|
||||
CORS_ORIGINS: http://127.0.0.1:${FRONTEND_PORT:-3000},http://localhost:${FRONTEND_PORT:-3000}
|
||||
# Allow frontend (container network) and localhost for testing
|
||||
CORS_ORIGINS: http://frontend:${FRONTEND_PORT:-3000},http://127.0.0.1:${FRONTEND_PORT:-3000},http://localhost:${FRONTEND_PORT:-3000}
|
||||
ports:
|
||||
- "127.0.0.1:${WIZARD_PORT:-8080}:${WIZARD_PORT:-8080}"
|
||||
networks:
|
||||
@@ -74,7 +75,8 @@ services:
|
||||
container_name: harborforge-test-frontend
|
||||
restart: "no"
|
||||
environment:
|
||||
VITE_API_BASE_URL: http://127.0.0.1:${BACKEND_PORT:-8000}
|
||||
# Use internal service name for backend API
|
||||
VITE_API_BASE_URL: http://backend:${BACKEND_PORT:-8000}
|
||||
ports:
|
||||
- "127.0.0.1:${FRONTEND_PORT:-3000}:${FRONTEND_PORT:-3000}"
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user