answerevaluate / docker-compose.yml
triflix's picture
Upload 45 files
74ba611 verified
raw
history blame contribute delete
641 Bytes
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