transcription/docker-compose.yml

49 lines
1.4 KiB
YAML
Raw Normal View History

services:
transcription:
build:
context: .
dockerfile: Dockerfile.rag
image: transcription-transcription:latest
container_name: transcription_service
ports:
- "8000:8000"
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1
- HF_TOKEN=${HF_TOKEN}
- OPENCODE_API_KEY=${OPENCODE_API_KEY}
- OPENCODE_URL=${OPENCODE_URL:-https://opencode.ai/zen/v1}
- QMD_COLLECTION_ROOT=${QMD_COLLECTION_ROOT:-/app/processed}
- RAG_EMBED_MODEL=${RAG_EMBED_MODEL:-sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2}
- HF_HOME=/root/.cache/huggingface
- NLTK_DATA=/root/nltk_data
- JWT_SECRET=${JWT_SECRET:-change-me-in-production}
- AUTH_ADMIN_PASSWORD=${AUTH_ADMIN_PASSWORD:-admin123}
volumes:
- uploads:/app/uploads
- processed:/app/processed
- tmp:/app/tmp
- ./config.yaml:/app/config.yaml:ro
- ./backend:/app/backend:ro
- ./src:/app/src:ro
- ./scripts:/app/scripts:ro
- ./models/huggingface:/root/.cache/huggingface
- ./models/nltk_data:/root/nltk_data:ro
- data:/app/data
restart: unless-stopped
entrypoint: ["uvicorn"]
command: ["backend.main:app", "--host", "0.0.0.0", "--port", "8000"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
uploads:
processed:
tmp:
data: