Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
45 lines (45 loc) · 1.64 KB
/
Copy pathrender.yaml
File metadata and controls
45 lines (45 loc) · 1.64 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
34
35
36
37
38
39
40
41
42
43
44
45
# Render Blueprint for the Drishti API (backend/). Dashboard → New → Blueprint → pick this repo.
# The frontend stays on Vercel: set NEXT_PUBLIC_API_URL there to this service's URL and redeploy.
services:
- type: web
name: drishti-api
runtime: docker
rootDir: backend
dockerfilePath: ./backend/Dockerfile
dockerContext: ./backend
# Neon lives in AWS us-east-2, i.e. Ohio.
region: ohio
# Free plan: no persistent disk, and the service sleeps after ~15 min idle, wiping /data.
# Episode files are kept in R2 (S3_* below) and restored on demand, so nothing is lost.
# 512 MB RAM is tight for long episodes; if processing gets killed, move up to a paid plan.
plan: free
# One instance: the job queue lives in the API process.
numInstances: 1
healthCheckPath: /health
autoDeployTrigger: commit
envVars:
- key: DATA_DIR
value: /data
- key: CORS_ORIGINS
value: https://drishti-hoichoihackathon.vercel.app,http://localhost:3000
- key: S3_REGION
value: auto
# Secrets: Render prompts for these when the Blueprint is first created.
- key: DATABASE_URL
sync: false
- key: OPENAI_API_KEY
sync: false
- key: SARVAM_API_KEY
sync: false
- key: HF_TOKEN
sync: false
# Cloudflare R2: https://<account_id>.r2.cloudflarestorage.com, the bucket name, and an
# R2 API token with Object Read & Write on that bucket.
- key: S3_ENDPOINT_URL
sync: false
- key: S3_BUCKET
sync: false
- key: S3_ACCESS_KEY_ID
sync: false
- key: S3_SECRET_ACCESS_KEY
sync: false