version: "3.9" services: api: build: context: . dockerfile: Dockerfile ports: - "8000:8000" env_file: - .env volumes: - model_cache:/app/model_cache - ./data:/app/data restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/health').raise_for_status()"] interval: 30s timeout: 10s retries: 3 start_period: 60s volumes: model_cache: driver: local