forked from render-examples/zulip
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrender.yaml
161 lines (161 loc) · 4.81 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
services:
- type: pserv
plan: starter
region: singapore
name: zulip-redis
env: docker
dockerfilePath: ./redis/Dockerfile
dockerContext: ./redis
autoDeploy: false
envVars:
- key: REDIS_PASSWORD
generateValue: true
disk:
name: redis-persistent-storage
mountPath: /data
sizeGB: 5
- type: pserv
plan: starter
region: singapore
name: zulip-memcached
env: docker
dockerfilePath: ./memcached/Dockerfile
autoDeploy: false
envVars:
- key: SASL_CONF_PATH
value: /home/memcache/memcached.conf
- key: MEMCACHED_SASL_PWDB
value: /home/memcache/memcached-sasl-db
- key: MEMCACHED_PASSWORD
generateValue: true
- type: pserv
plan: starter
region: singapore
name: zulip-rabbitmq
env: docker
repo: https://github.com/render-examples/rabbitmq.git
autoDeploy: false
envVars:
- key: RABBITMQ_ERLANG_COOKIE
generateValue: true
- key: RABBITMQ_DEFAULT_USER
value: zulip # Must be set to zulip
- key: RABBITMQ_DEFAULT_PASS
generateValue: true
disk:
name: rabbitmq
mountPath: /var/lib/rabbitmq
sizeGB: 5
- type: pserv
plan: starter
region: singapore
name: zulip-postgresql
env: docker
dockerfilePath: ./postgresql/Dockerfile
autoDeploy: false
envVars:
- key: POSTGRES_DB
value: zulip # Must be set to zulip
- key: POSTGRES_USER
value: zulip # Must be set to zulip
- key: POSTGRES_PASSWORD
generateValue: true
disk:
name: postgresql-persistent-storage
mountPath: /var/lib/postgresql/data
sizeGB: 5
- type: web
plan: starter
region: singapore
name: zulip
env: docker
dockerfilePath: ./docker-zulip/Dockerfile
autoDeploy: false
disk:
name: zulip-persistent-storage
mountPath: /data
sizeGB: 5
envVars:
- key: SETTING_EXTERNAL_HOST
sync: false # the hostname your users will use to connect to your Zulip server. this defaults to the onrender.com domain given to you by Render
- key: SETTING_ZULIP_ADMINISTRATOR
sync: false # (required) initial admin email for setup; set to your personal email address
- key: SETTING_EMAIL_HOST
sync: false # (for production) set to a valid SMTP server host in the dashboard
- key: SETTING_EMAIL_HOST_USER #TODO
sync: false # (for production) set to the SMTP user in the dashboard
- key: SETTING_EMAIL_PORT
sync: false # (for production) set to the SMTP email port in the dashboard
- key: SECRETS_email_password
sync: false # (for production) set to the SMTP server password in the dashboard
- key: SETTING_EMAIL_USE_SSL
value: False # (for production) False since TLS replaces SSL; SETTING_EMAIL_USE_TLS is set to True
- key: SETTING_EMAIL_USE_TLS
value: True
- key: QUEUE_WORKERS_MULTIPROCESS
value: False # set to True if Zulip plan is pro or greater
- key: ZULIP_AUTH_BACKENDS
value: 'EmailAuthBackend' # Zulip supports other authentication methods https://zulip.readthedocs.io/en/latest/production/authentication-methods.html
- key: SECRETS_secret_key
generateValue: true
- key: DB_HOST
fromService:
name: zulip-postgresql
type: pserv
property: host
- key: DB_HOST_PORT
fromService:
name: zulip-postgresql
type: pserv
property: port
- key: DB_USER
fromService:
name: zulip-postgresql
type: pserv
envVarKey: POSTGRES_USER
- key: SETTING_MEMCACHED_LOCATION
fromService:
name: zulip-memcached
type: pserv
property: hostport
- key: SETTING_REDIS_HOST
fromService:
name: zulip-redis
type: pserv
property: host
- key: REDIS_PORT
fromService:
name: zulip-redis
type: pserv
property: port
- key: SETTING_RABBITMQ_HOST
fromService:
name: zulip-rabbitmq
type: pserv
property: host
- key: SECRETS_memcached_password
fromService:
name: zulip-memcached
type: pserv
envVarKey: MEMCACHED_PASSWORD
- key: SECRETS_postgres_password
fromService:
name: zulip-postgresql
type: pserv
envVarKey: POSTGRES_PASSWORD
- key: SECRETS_rabbitmq_password
fromService:
name: zulip-rabbitmq
type: pserv
envVarKey: RABBITMQ_DEFAULT_PASS
- key: SECRETS_redis_password
fromService:
name: zulip-redis
type: pserv
envVarKey: REDIS_PASSWORD
- key: DISABLE_HTTPS
value: True # Do not edit! Render gives you SSL automatically. This removes https-related config
- key: PORT
value: 80 # Do not edit! Nginx listens for http traffic at port 80
- key: SSL_CERTIFICATE_GENERATION # Render gives you SSL out of the box
value: 'self-signed' # We set this to self-signed, since setup requires a value, but this is not used