Configure CORS origins and backend port

This commit is contained in:
masterdev
2026-06-16 23:06:22 +01:00
parent 9f2aeb1d4e
commit e0cd6fae06
4 changed files with 32 additions and 3 deletions

View File

@@ -39,13 +39,14 @@ services:
MQTT_PORT: 1883
MQTT_TOPIC: plasttrack/machines/+/events
FRONTEND_ORIGIN: ${FRONTEND_ORIGIN:-http://localhost:5173}
FRONTEND_ORIGINS: ${FRONTEND_ORIGINS:-http://localhost:5173,http://127.0.0.1:5173}
depends_on:
database:
condition: service_healthy
mqtt:
condition: service_healthy
ports:
- "8000:8000"
- "${BACKEND_PORT:-8000}:8000"
edge-simulator:
build: