version: '3.8' services: api: build: context: . dockerfile: Dockerfile image: feedback-analysis:latest restart: unless-stopped env_file: - .env ports: - "8000:8000" volumes: - ./:/app:ro # By default, run the production command from the Dockerfile. command: ["uvicorn", "app.api:app", "--host", "0.0.0.0", "--port", "8000"] healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:8000/health || exit 1"] interval: 30s timeout: 10s retries: 3