mirror of
https://github.com/elisiariocouto/leggen.git
synced 2025-12-11 16:12:22 +00:00
- Add configurable API URL support via environment variables - Update nginx configuration with environment variable substitution - Create nginx template for dynamic proxy configuration - Update Docker configuration for environment variable handling - Fix hardcoded localhost:8000 references in error messages - Add proper TypeScript types for health check API - Format all code with Prettier for consistency - Update documentation with configuration instructions - Improve error messages to be environment-agnostic - Fix duplicate imports and type safety issues BREAKING: API URL is now configurable via VITE_API_URL (dev) and API_BACKEND_URL (prod)
26 lines
550 B
YAML
26 lines
550 B
YAML
services:
|
|
# React frontend service
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
restart: "unless-stopped"
|
|
ports:
|
|
- "127.0.0.1:3000:80"
|
|
environment:
|
|
- API_BACKEND_URL=${API_BACKEND_URL:-http://leggend:8000}
|
|
depends_on:
|
|
leggend:
|
|
condition: service_healthy
|
|
|
|
# FastAPI backend service
|
|
leggend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: "unless-stopped"
|
|
ports:
|
|
- "127.0.0.1:8000:8000"
|
|
volumes:
|
|
- "./data:/root/.config/leggen"
|