Spaces:
Sleeping
Sleeping
| version: '3.8' | |
| services: | |
| app: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| container_name: educational-qa-api | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| - GEMINI_API_KEY=${GEMINI_API_KEY} | |
| - GROQ_API_KEY=${GROQ_API_KEY} | |
| - PORT=7860 | |
| - HF_HOME=/tmp/huggingface | |
| env_file: | |
| - .env | |
| volumes: | |
| - ./app:/app/app:ro | |
| - model-cache:/tmp/huggingface | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:7860/docs"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 40s | |
| volumes: | |
| model-cache: | |
| driver: local | |