File size: 587 Bytes
034506e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
  backend:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "7860:7860"
    env_file:
      - path: ./backend/.env
        required: false
    environment:
      - CORS_ORIGINS=http://localhost:8000
      # API engines activate automatically when these are set (see backend/.env)
      - GEMINI_API_KEY=${GEMINI_API_KEY:-}
      - GROQ_API_KEY=${GROQ_API_KEY:-}
    volumes:
      # Persist the converted model + HF cache across rebuilds.
      - model-cache:/app/models
      - hf-cache:/root/.cache/huggingface

volumes:
  model-cache:
  hf-cache: