From 8e78d14086fbaf7256b185a1c5eef3c7ed7aff68 Mon Sep 17 00:00:00 2001 From: Matt Spencer Date: Thu, 30 Apr 2026 21:47:57 +0000 Subject: [PATCH] Fixup the env variables for the webui launch --- docker-compose.yml | 6 +++--- webui/Dockerfile | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e9fb547..2b2aa30 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,9 +53,9 @@ services: platforms: - linux/arm64 args: - # WebSocket URL of the GStreamer signaling server, baked into the frontend bundle. - # Override with: VITE_WEBRTC_WS_URL=ws://raspberrypi.local:8443 - VITE_WEBRTC_WS_URL: ${VITE_WEBRTC_WS_URL:-} + # Hostname of the GStreamer signaling server, baked into the frontend bundle. + # Override with: VITE_WEBRTC_HOST=raspbot-v2.local + VITE_WEBRTC_HOST: ${VITE_WEBRTC_HOST:-} image: raspbot_v2_webui:latest network_mode: host ipc: host diff --git a/webui/Dockerfile b/webui/Dockerfile index e0acfd9..62e59b6 100644 --- a/webui/Dockerfile +++ b/webui/Dockerfile @@ -6,10 +6,10 @@ COPY frontend/package.json ./ RUN npm install COPY frontend/ ./ -# Passed in via docker-compose build args so the URL is baked into the bundle. -# e.g. VITE_WEBRTC_WS_URL=ws://raspberrypi.local:8443 -ARG VITE_WEBRTC_WS_URL -ENV VITE_WEBRTC_WS_URL=${VITE_WEBRTC_WS_URL} +# Passed in via docker-compose build args so the host is baked into the bundle. +# e.g. VITE_WEBRTC_HOST=raspbot-v2.local +ARG VITE_WEBRTC_HOST +ENV VITE_WEBRTC_HOST=${VITE_WEBRTC_HOST} RUN npm run build