document_agent / render.yaml
Jai-rathore29's picture
Deploy: DocAgent backend (deterministic date-anomaly fix)
f65e025
Raw
History Blame Contribute Delete
1.13 kB
# 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