-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
74 lines (71 loc) · 1.98 KB
/
Copy pathrender.yaml
File metadata and controls
74 lines (71 loc) · 1.98 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
services:
- name: shimlayer-api
type: web
runtime: python
plan: starter
buildCommand: pip install -r requirements.txt
startCommand: python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT
healthCheckPath: /healthz
envVars:
- key: SHIMLAYER_REPOSITORY
value: postgres
- key: SHIMLAYER_DB_DSN
fromDatabase:
name: shimlayer-db
property: connectionString
- key: SHIMLAYER_ADMIN_API_KEY
generateValue: true
- key: SHIMLAYER_WEBHOOK_SECRET
generateValue: true
- key: SHIMLAYER_OPERATOR_RATE_LIMIT_PER_MINUTE
value: "120"
- key: SHIMLAYER_TELEGRAM_BOT_TOKEN
sync: false
- key: SHIMLAYER_CORS_ORIGINS
sync: false
- name: shimlayer-webhook-worker
type: worker
runtime: python
plan: starter
buildCommand: pip install -r requirements.txt
startCommand: python -m app.workers.webhook_worker
envVars:
- key: SHIMLAYER_REPOSITORY
value: postgres
- key: SHIMLAYER_DB_DSN
fromDatabase:
name: shimlayer-db
property: connectionString
- key: SHIMLAYER_ADMIN_API_KEY
fromService:
name: shimlayer-api
type: web
envVarKey: SHIMLAYER_ADMIN_API_KEY
- key: SHIMLAYER_WEBHOOK_SECRET
fromService:
name: shimlayer-api
type: web
envVarKey: SHIMLAYER_WEBHOOK_SECRET
- name: shimlayer-frontend
type: web
runtime: static
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: frontend/dist
envVars:
- key: VITE_API_URL
sync: false
- key: VITE_API_KEY
sync: false
- key: VITE_ADMIN_KEY
sync: false
- key: VITE_ADMIN_ROLE
value: admin
- key: VITE_ADMIN_USER
value: render-admin
- key: VITE_OPERATOR_KEY
sync: false
databases:
- name: shimlayer-db
plan: basic-256mb
databaseName: shimlayer
user: shimlayer