version: '3.8' services: backend: build: context: . dockerfile: Dockerfile.dev.backend ports: - "8000:8000" volumes: - ./backend:/app/backend environment: - PYTHONUNBUFFERED=1 command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload frontend: build: context: . dockerfile: Dockerfile.dev.frontend ports: - "3000:3000" volumes: - ./frontend:/app - /app/node_modules environment: - NEXT_PUBLIC_API_URL=http://localhost:8000 command: npm run dev # Production-like test (simulates Hugging Face) production: build: context: . dockerfile: Dockerfile ports: - "7860:7860" environment: - NODE_ENV=production