From 0d4c5c463ca7374202377715ce87afb9634c30bd Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Thu, 12 Feb 2026 11:27:45 -0500 Subject: [PATCH] feat: standalone frontend uses production build instead of dev server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Override web service in docker-compose.standalone.yml to build from www/Dockerfile (multi-stage: deps → build → standalone runner) instead of running pnpm dev with bind-mounted source. --- COMPOSE_STANDALONE_TODO.md | 10 ++++++++++ docker-compose.standalone.yml | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 COMPOSE_STANDALONE_TODO.md diff --git a/COMPOSE_STANDALONE_TODO.md b/COMPOSE_STANDALONE_TODO.md new file mode 100644 index 00000000..f10bc776 --- /dev/null +++ b/COMPOSE_STANDALONE_TODO.md @@ -0,0 +1,10 @@ +# Standalone Compose: Remaining Production Work + +## Server/worker/beat: remove host network mode + bind mounts + +Currently `server` uses `network_mode: host` and all three services bind-mount `./server/:/app/`. For full standalone prod: + +- Remove `network_mode: host` from server +- Remove bind-mount volumes from server, worker, beat (use built image only) +- Update `compose_cmd` in `setup-standalone.sh` to not rely on host network +- Change `SERVER_API_URL` from `http://host.docker.internal:1250` to `http://server:1250` (server reachable via Docker network once off host mode) diff --git a/docker-compose.standalone.yml b/docker-compose.standalone.yml index 682a4bd9..7d1a1e03 100644 --- a/docker-compose.standalone.yml +++ b/docker-compose.standalone.yml @@ -76,6 +76,15 @@ services: DIARIZATION_BACKEND: modal DIARIZATION_URL: http://cpu:8000 + web: + image: reflector-frontend-standalone + build: + context: ./www + command: ["node", "server.js"] + volumes: !reset [] + environment: + NODE_ENV: production + cpu: build: context: ./gpu/self_hosted