Change frontend port to 3001 and fix REACT_APP_API_URL as build arg

REACT_APP_API_URL is baked into the JS bundle at build time, so it
must be passed as a build arg, not a runtime environment variable.
Port changed from 3000 to 3001 to avoid conflict with Gitea.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 16:54:49 +01:00
parent 22c36eff67
commit 8982f76d15
+5 -4
View File
@@ -10,11 +10,12 @@ services:
restart: unless-stopped restart: unless-stopped
frontend: frontend:
build: ./frontend build:
ports: context: ./frontend
- "3000:3000" args:
environment:
- REACT_APP_API_URL=http://localhost:8000 - REACT_APP_API_URL=http://localhost:8000
ports:
- "3001:3000"
depends_on: depends_on:
- backend - backend
restart: unless-stopped restart: unless-stopped