Files
BTC-Portfolio/btc-portfolio/docker-compose.yml
T
Jonathan 8982f76d15 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>
2026-03-24 16:54:49 +01:00

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