forked from dittofeed/dittofeed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
123 lines (122 loc) · 3.16 KB
/
render.yaml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
databases:
- name: dittofeed-db
envVarGroups:
- name: clickhouse-credentials
envVars:
- key: CLICKHOUSE_USER
value: dittofeed
- key: CLICKHOUSE_PASSWORD
generateValue: true
- name: backend-app-env
envVars:
- key: NODE_ENV
value: production
- key: CLICKHOUSE_PROTOCOL
value: http
- key: DASHBOARD_URL_NAME
value: RENDER_EXTERNAL_URL
- key: DASHBOARD_API_NAME
value: RENDER_EXTERNAL_URL
- key: DASHBOARD_API_DOMAIN
value: onrender.com
- key: DASHBOARD_API_PORT
value: 443
- name: temporal-shared
envVars:
- key: DYNAMIC_CONFIG_FILE_PATH
value: /etc/temporal/dynamicconfig.yaml
- key: DB
value: postgresql
services:
- type: web
name: dittofeed-lite
env: docker
autoDeploy: false
dockerfilePath: ./packages/lite/Dockerfile
dockerContext: .
# Setting Node.js max-old-space-size to 312 MB.
# This is calculated as follows: Total RAM (512 MB) - Buffer (200 MB) -
# Memory for other processes (100 MB).
dockerCommand: node --max-old-space-size=212 packages/lite/dist/scripts/startLite.js --workspace-name=$WORKSPACE_NAME
envVars:
- fromGroup: backend-app-env
- fromGroup: clickhouse-credentials
- key: WORKSPACE_NAME
sync: false
- key: REUSE_CONTEXT
value: "true"
- key: MAX_CACHED_WORKFLOWS
value: "10"
- key: DATABASE_HOST
fromDatabase:
name: dittofeed-db
property: host
- key: DATABASE_USER
fromDatabase:
name: dittofeed-db
property: user
- key: DATABASE_PORT
fromDatabase:
name: dittofeed-db
property: port
- key: DATABASE_PASSWORD
fromDatabase:
name: dittofeed-db
property: password
- key: CLICKHOUSE_HOST
fromService:
type: pserv
name: dittofeed-ch
property: host
- key: TEMPORAL_ADDRESS
fromService:
type: pserv
name: temporal
property: host
- key: PASSWORD
sync: false
- key: SECRET_KEY
generateValue: true
- type: pserv
name: dittofeed-ch
env: docker
plan: standard
autoDeploy: false
dockerfilePath: ./render/clickhouse/Dockerfile
dockerContext: .
envVars:
- fromGroup: backend-app-env
- fromGroup: clickhouse-credentials
disk:
name: data
mountPath: /var/lib/clickhouse
sizeGB: 10
- type: pserv
name: temporal
autoDeploy: false
env: docker
dockerfilePath: ./render/temporal/server/auto-setup/Dockerfile
envVars:
- fromGroup: temporal-shared
- key: PORT
value: 7233
- key: DBNAME
fromDatabase:
name: dittofeed-db
property: database
- key: DB_PORT
fromDatabase:
name: dittofeed-db
property: port
- key: POSTGRES_USER
fromDatabase:
name: dittofeed-db
property: user
- key: POSTGRES_PWD
fromDatabase:
name: dittofeed-db
property: password
- key: POSTGRES_SEEDS
fromDatabase:
name: dittofeed-db
property: host