translator-model-api / docker-compose.yml
arindae's picture
current changes + deployment
034506e
Raw
History Blame Contribute Delete
587 Bytes
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: