JWT login, org-scoped storage and RAG, admin/director/user roles, user-owned projects, login UI, and legacy data migration. Co-authored-by: Cursor <cursoragent@cursor.com>
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
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}
|
|
- 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:
|