-
Notifications
You must be signed in to change notification settings - Fork 9
/
rancher-compose.yml
296 lines (277 loc) · 9.04 KB
/
rancher-compose.yml
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
version: '2'
catalog:
name: "EEA Website Frontend - Plone 6"
description: "EEA Main Website Plone 6 Frontend"
version: "1.17.0"
questions:
- variable: "HOST_LABELS"
label: "Do not schedule services on hosts with following host labels"
description: "Comma separated list of host labels (e.g. key1=value1,key2=value2) to avoid when scheduling the services."
type: "string"
default: "reserved=yes"
- variable: "BACKEND"
label: "Backend"
description: "Plone backend service"
type: "service"
required: true
- variable: "INTERNAL_API_PATH"
label: "INTERNAL_API_PATH"
description: "Location of Plone site accessible from container"
default: "http://backend:8080/www"
required: true
type: "string"
- variable: "DEBUG"
label: "Debug"
description: "Enable frontend debugging"
default: "Yes"
type: "enum"
options:
- "Yes"
- "No"
required: true
- variable: "ALLOWED_CORS_DESTINATIONS"
label: "ALLOWED_CORS_DESTINATIONS"
description: "Allowed CORS Proxy destinations, e.g.: staging.eea.europa.eu, ims.dev.eea.europa.eu"
default: ""
type: "string"
- variable: "SENTRY_URL"
label: "Sentry URL"
description: "Sentry URL"
type: "string"
default: "https://sentry.eea.europa.eu"
- variable: "SENTRY_AUTH_TOKEN"
label: "Sentry AUTH token"
description: "Authentication token for sentry"
type: "password"
required: false
- variable: "SENTRY_ORG"
label: "Sentry organization"
description: "Name of the organization in sentry"
default: "eea"
type: "string"
- variable: "SENTRY_PROJECT"
label: "Sentry project"
description: "Name of the project in sentry"
default: "demo-eea-website"
type: "string"
required: false
- variable: "SENTRY_DSN"
label: "Sentry DSN"
description: "Sentry client key. If set, Sentry error reporting and User feedback will be enabled. Default is plone-saas DSN."
type: "string"
required: false
- variable: "RAZZLE_MATOMO_SITE_ID"
label: "Matomo site id"
description: "Matomo site id"
type: "string"
required: false
- variable: "RAZZLE_MATOMO_SECOND_SITE_ID"
label: "Matomo site id (second)"
description: "Matomo second site id"
type: "string"
required: false
- variable: SSH_AUTH_KEY
label: "Debug SSH public key"
description: "Provide your public SSH key (id_rsa.pub) string in order to be able to connect with your local editor (e.g.: Visual Studio Code)"
type: "string"
required: true
default: "#"
- variable: "TZ"
label: "Time zone"
description: "Time zone"
default: "Europe/Copenhagen"
type: "string"
required: true
- variable: "DATAHUB_ES_DSN"
label: "Datahub elasticsearch DSN"
description: "Datahub elasticsearch DSN"
type: "string"
- variable: "DATAHUB_QA_DSN"
label: "Datahub QA DSN"
description: "Datahub QA DSN"
type: "string"
- variable: "DATAHUB_DOCUMENTCOUNTTHRESHOLD"
label: "Document count threshold for datahub"
description: "Critical if the number of documents is below this value"
type: "string"
default: "200"
- variable: "DATAHUB_QUERYTIMESECONDSTHRESHOLD_OK"
label: "OK query time threshold for datahub in seconds"
description: "Warning if the query time is more than this value"
type: "string"
default: "3"
- variable: "DATAHUB_QUERYTIMESECONDSTHRESHOLD_WARNING"
label: "WARNING query time threshold for datahub in seconds"
description: "Critical if the query time is more than this value"
type: "string"
default: "10"
- variable: "GLOBALSEARCH_ES_DSN"
label: "Globalsearch elasticsearch DSN"
description: "Globalsearch elasticsearch DSN"
type: "string"
- variable: "GLOBALSEARCH_QA_DSN"
label: "Globalsearch QA DSN"
description: "Globalsearch QA DSN"
type: "string"
- variable: "GLOBALSEARCH_DOCUMENTCOUNTTHRESHOLD"
label: "Document count threshold for globalsearch"
description: "Critical if the number of documents is below this value"
type: "string"
default: "50000"
- variable: "GLOBALSEARCH_QUERYTIMESECONDSTHRESHOLD_OK"
label: "OK query time threshold for globalsearch in seconds"
description: "Warning if the query time is more than this value"
type: "string"
default: "3"
- variable: "GLOBALSEARCH_QUERYTIMESECONDSTHRESHOLD_WARNING"
label: "WARNING query time threshold for globalsearch in seconds"
description: "Critical if the query time is more than this value"
type: "string"
default: "10"
- variable: "HAPROXY_AUTH"
label: "Haproxy credentials"
description: "Credentials used for haproxy stats, default admin:admin"
type: "string"
default: "admin:admin"
- variable: "RAZZLE_DISABLE_DRAFT_WATERMARK"
label: "Draft watermark"
description: "EEA theme: draft watermark setup"
type: "enum"
options:
- "Default"
- "Hide-No-Workflow"
- "Hide-All"
default: "Default"
required: true
- variable: "CACHE_SIZE"
label: "Varnish cache size"
description: "Varnish cache size. e.g. 16G"
default: "2G"
type: "string"
required: true
- variable: "VARNISH_BERESP_TTL"
label: "Varnish object TTL (fresh)"
description: "https://docs.varnish-software.com/tutorials/object-lifetime/"
type: "string"
default: "60s"
- variable: "VARNISH_BERESP_GRACE"
label: "Varnish object grace (stale)"
description: "https://docs.varnish-software.com/tutorials/object-lifetime/"
type: "string"
default: "120s"
- variable: "VARNISH_BERESP_KEEP"
label: "Varnish object KEEP (used in conditional requests)"
description: "https://docs.varnish-software.com/tutorials/object-lifetime/"
type: "string"
default: "120s"
- variable: "VARNISH_GZIP_ENABLED"
label: "Enable gzip on text & js content types"
type: "enum"
default: "false"
required: true
options:
- "false"
- "true"
- variable: "VARNISH_GZIP_JSON_ENABLED"
label: "Enable gzip on json content types"
type: "enum"
default: "false"
required: true
options:
- "false"
- "true"
- variable: "AUTOKILL_CRON"
label: "Varnish re-create crontab"
description: "If empty, will not force a recreation of the container. Uses UTC time, format is linux crontab - for example - `0 2 * * *` is 02:00 UTC each day"
type: "string"
- variable: "MEM_RESERVATION"
label: "Frontend memory reservation"
type: "string"
required: true
default: "1g"
- variable: "MEM_LIMIT"
label: "Frontend memory limit"
description: ">= memory reservation"
type: "string"
required: true
default: "4g"
- variable: "VARNISH_MEM_RESERVATION"
label: "Varnish memory reservation"
type: "string"
required: true
default: "2g"
- variable: "VARNISH_MEM_LIMIT"
label: "Varnish memory limit"
description: ">= memory reservation"
type: "string"
required: true
default: "3g"
- variable: "VOLUME_DRIVER"
label: "Debug source code volume driver"
description: |
Volume driver for "/opt/frontend/src/addons" volume.
Use "rancher-ebs" for best performance in Amazon.
Anywhere else it is recommended to use "local", but you'll have to make sure that services don't spread accross multiple hosts.
You will have to use "rancher-nfs" if you need scaling and code intervention (be aware that this will have a drastic impact on performance)
default: "rancher-ebs"
type: "enum"
options:
- "local"
- "netapp"
- "rancher-nfs"
- "rancher-ebs"
required: true
- variable: "VOLUME_DRIVER_OPTS"
label: "Source code volume driver options"
description: |
Specify "driver_opts" key/value pair in the format "optionName: optionValue".
E.g. for the `rancher-ebs` driver you should specify the required 'size' option like this: "size: 1". Leave empty otherwise.
type: "multiline"
default: "size: 1"
- variable: "VOLTO_ROBOTSTXT"
label: "robots.txt"
description: "Setup robots.txt content."
type: "multiline"
required: false
- variable: "RAZZLE_KEYCLOAK"
label: "Integration with Keycloak is enabled? "
description: "Specify if a Keycloak integration is active."
type: "enum"
default: "No"
required: true
options:
- "Yes"
- "No"
services:
frontend:
health_check:
healthy_threshold: 2
response_timeout: 10000
port: 3000
unhealthy_threshold: 5
initializing_timeout: 90000
interval: 10000
strategy: recreate
request_line: GET "/ok" "HTTP/1.0"
varnish:
health_check:
healthy_threshold: 1
response_timeout: 10000
port: 3000
unhealthy_threshold: 8
initializing_timeout: 90000
interval: 20000
strategy: recreate
request_line: GET "/ok" "HTTP/1.0"
reinitializing_timeout: 90000
haproxy:
health_check:
healthy_threshold: 1
response_timeout: 10000
port: 3000
unhealthy_threshold: 8
initializing_timeout: 90000
interval: 20000
strategy: recreate
request_line: GET "/ok" "HTTP/1.0"
reinitializing_timeout: 90000