File size: 935 Bytes
2c41dce
 
 
 
 
 
 
 
9072a85
2c41dce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9072a85
2c41dce
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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