services: webapp: build: context: . dockerfile: Dockerfile ports: - "8000:7860" # Map container port 7860 to localhost:8000 volumes: - ./webapp:/app/webapp # Code mount for development environment: - DEBUG=true healthcheck: test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:7860/api/health')"] interval: 30s timeout: 10s retries: 3 start_period: 10s