8982f76d15
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>
22 lines
417 B
YAML
22 lines
417 B
YAML
services:
|
|
backend:
|
|
build: ./backend
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- DATABASE_URL=sqlite:////app/data/btc_portfolio.db
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
args:
|
|
- REACT_APP_API_URL=http://localhost:8000
|
|
ports:
|
|
- "3001:3000"
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|