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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user