File size: 842 Bytes
1d9bd9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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"