File size: 1,130 Bytes
f65e025
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Render blueprint for the Document-Agent backend (Docker + persistent disk).
# Deploy: push this repo to GitHub, then Render Dashboard -> New -> Blueprint,
# point it at the repo. Set the two secret keys when prompted.
#
# Note: the ML backend needs real memory. `standard` (2 GB) is the floor;
# bump to `pro` (4 GB) if OCR on large scans gets OOM-killed.
services:
  - type: web
    name: document-agent-backend
    runtime: docker
    dockerfilePath: ./backend/Dockerfile
    dockerContext: ./backend
    plan: standard
    region: oregon
    healthCheckPath: /api/health
    autoDeploy: true
    disk:
      name: data
      mountPath: /data
      sizeGB: 10
    envVars:
      - key: DATA_DIR
        value: /data
      - key: DEFAULT_LLM_PROVIDER
        value: openai
      - key: ENABLE_OCR
        value: "true"
      # Set this to your deployed Vercel domain (comma-separate if several).
      - key: CORS_ORIGINS
        value: https://your-app.vercel.app
      # Secrets — set in the Render dashboard, never committed.
      - key: OPENAI_API_KEY
        sync: false
      - key: GEMINI_API_KEY
        sync: false