Add separate simulator UI

This commit is contained in:
masterdev
2026-06-17 01:06:21 +01:00
parent e083a22bff
commit e3d8f856e3
16 changed files with 2361 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ 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}
FRONTEND_ORIGINS: ${FRONTEND_ORIGINS:-http://localhost:5173,http://127.0.0.1:5173,http://localhost:5174,http://127.0.0.1:5174}
depends_on:
database:
condition: service_healthy
@@ -72,5 +72,16 @@ services:
ports:
- "5173:5173"
simulator-ui:
build:
context: ./simulator-ui
environment:
VITE_API_BASE_URL: ${SIMULATOR_API_BASE_URL:-http://localhost:8000}
VITE_ALLOWED_HOSTS: ${SIMULATOR_ALLOWED_HOSTS:-localhost,127.0.0.1,simulator.plasttrack.sable.ynsdev.site}
depends_on:
- backend
ports:
- "${SIMULATOR_PORT:-5174}:5174"
volumes:
postgres_data: