version: '3.8' services: backend: build: context: ../backend dockerfile: ../deploy/docker/backend.Dockerfile container_name: backend ports: - "8000:8000" environment: - DEBUG=true - LOG_LEVEL=INFO - API_HOST=0.0.0.0 - API_PORT=8000 - CORS_ORIGINS=http://localhost:3000 volumes: - ../backend:/app command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload networks: - app-network depends_on: - database frontend: build: context: ../frontend dockerfile: ../deploy/docker/frontend.Dockerfile container_name: frontend ports: - "3000:3000" environment: - REACT_APP_API_URL=http://localhost:8000 - REACT_APP_API_PREFIX=/api/v1 volumes: - ../frontend:/app - /app/node_modules command: npm start networks: - app-network depends_on: - backend database: image: postgres:16-alpine container_name: database ports: - "5432:5432" environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_DB=appdb volumes: - postgres-data:/var/lib/postgresql/data networks: - app-network networks: app-network: driver: bridge volumes: postgres-data: