Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
55 lines (51 loc) · 1.81 KB
/
Copy pathrender.yaml
File metadata and controls
55 lines (51 loc) · 1.81 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
46
47
48
49
50
51
52
53
54
55
# Render Blueprint — deploys the MVP: API (web) + worker, managed Postgres
# (pgvector) + Key Value (Redis). Architecture brief §8: single Postgres + 2
# workers. Secrets (OPENAI/DEEPSEEK keys, PUBLIC_BASE_URL) are set in the Render
# dashboard, not here (sync: false).
databases:
- name: zynd-postgres
plan: basic-256mb # bump for production; free tier expires in 90 days
postgresMajorVersion: "16"
services:
- type: keyvalue
name: zynd-redis
plan: free
ipAllowList: [] # only reachable from Render services
maxmemoryPolicy: noeviction # arq jobs must not be evicted
- type: web
name: zynd-api
runtime: docker
dockerfilePath: ./Dockerfile
plan: starter
# Apply the schema (idempotent) before each deploy goes live.
preDeployCommand: python -m app.schema_apply
dockerCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
envVars: &shared_env
- key: DATABASE_URL
fromDatabase:
name: zynd-postgres
property: connectionString
- key: REDIS_URL
fromService:
type: keyvalue
name: zynd-redis
property: connectionString
- key: MOCK_LLM
value: "false"
- key: OPENAI_API_KEY
sync: false # set in dashboard
- key: DEEPSEEK_API_KEY
sync: false # optional; extraction falls back to OpenAI
- key: JWT_SECRET
generateValue: true
- key: OAUTH_CLIENT_SECRET
generateValue: true
- key: PUBLIC_BASE_URL
sync: false # set to the API URL after first deploy
- type: worker
name: zynd-worker
runtime: docker
dockerfilePath: ./Dockerfile
plan: starter
dockerCommand: arq app.worker.WorkerSettings
envVars: *shared_env # same DB/Redis/keys as the API