| # themis backend — Render blueprint. | |
| # Connect this repo in Render (New > Blueprint) and it provisions the service. | |
| # | |
| # NOTE on memory: torch + sentence-transformers + the cross-encoder need | |
| # ~1 GB RAM resident. Render's free tier (512 MB) will likely OOM on first | |
| # model load — use the "standard" plan (or larger) for a reliable deploy. | |
| services: | |
| - type: web | |
| name: themis-backend | |
| runtime: python | |
| rootDir: backend | |
| plan: standard | |
| buildCommand: pip install -r requirements.txt | |
| startCommand: uvicorn app:app --host 0.0.0.0 --port $PORT | |
| healthCheckPath: /health | |
| envVars: | |
| - key: DEEPSEEK_API_KEY | |
| sync: false # set this in the Render dashboard | |
| - key: FRONTEND_ORIGIN | |
| sync: false # e.g. https://themis.vercel.app | |
| - key: PYTHON_VERSION | |
| value: "3.11" | |