-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
33 lines (33 loc) · 1.01 KB
/
render.yaml
File metadata and controls
33 lines (33 loc) · 1.01 KB
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
services:
- type: web
name: doc-verification-engine
runtime: python
region: oregon
plan: free
# Install Tesseract system package before pip dependencies
buildCommand: apt-get install -y tesseract-ocr libgl1 libglib2.0-0 && pip install -r requirements.txt
startCommand: uvicorn src.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: APP_ENV
value: production
- key: UPLOAD_DIR
value: uploads
- key: IMAGE_MAX_WIDTH
value: "1600"
- key: MAX_UPLOAD_SIZE_MB
value: "5"
- key: OCR_LANG
value: en
- key: LOG_LEVEL
value: INFO
# Set these in the Render dashboard (not hardcoded here — they contain secrets)
- key: MONGODB_URI
sync: false
- key: MONGODB_DB_NAME
value: doc_verification
- key: CORS_ORIGINS
sync: false # set to your Vercel URL, e.g. https://your-app.vercel.app
disk:
name: uploads
mountPath: /opt/render/project/src/uploads
sizeGB: 1