| version: '3.8' | |
| services: | |
| api: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| # Core settings | |
| - MAX_FILE_SIZE_MB=10 | |
| - HASH_ALGORITHM=sha256 | |
| # OCR settings (optional) | |
| - OCR_ENABLED=true | |
| - OCR_LANGUAGE=eng | |
| # AI settings (optional - set your key) | |
| - AI_ENABLED=${AI_ENABLED:-false} | |
| - GEMINI_API_KEY=${GEMINI_API_KEY:-} | |
| - GEMINI_MODEL=gemini-1.5-flash | |
| # Storage settings (configure when ready) | |
| - SUPABASE_URL=${SUPABASE_URL:-} | |
| - SUPABASE_KEY=${SUPABASE_KEY:-} | |
| - SUPABASE_TABLE=proofs | |
| volumes: | |
| # Mount .env file for local development | |
| - ./.env:/app/.env:ro | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:7860/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 5s |