-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
189 lines (181 loc) · 6.88 KB
/
docker-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
version: '2'
services:
{{- if eq .Values.DEBUG "Yes" }}
debug:
image: eeacms/eea-website-frontend:1.17.0
ports:
- "3000"
mem_limit: ${MEM_LIMIT}
mem_reservation: ${MEM_RESERVATION}
depends_on:
- backend
links:
- backend
environment:
SENTRY_URL: ${SENTRY_URL}
SENTRY_AUTH_TOKEN: ${SENTRY_AUTH_TOKEN}
SENTRY_ORG: ${SENTRY_ORG}
SENTRY_PROJECT: ${SENTRY_PROJECT}
RAZZLE_SENTRY_DSN: ${SENTRY_DSN}
SENTRY_RELEASE: '1.17.0'
RAZZLE_BACKEND_NAME: 'eea-website-backend'
RAZZLE_SENTRY_RELEASE: '1.17.0'
RAZZLE_FRONTEND_VERSION: '1.17.0'
RAZZLE_DISABLE_DRAFT_WATERMARK: "${RAZZLE_DISABLE_DRAFT_WATERMARK}"
RAZZLE_ALLOWED_CORS_DESTINATIONS: ${ALLOWED_CORS_DESTINATIONS}
RAZZLE_MATOMO_SITE_ID: "${RAZZLE_MATOMO_SITE_ID}"
RAZZLE_MATOMO_SECOND_SITE_ID: "${RAZZLE_MATOMO_SECOND_SITE_ID}"
RAZZLE_INTERNAL_API_PATH: "${INTERNAL_API_PATH}"
RAZZLE_DEV_PROXY_API_PATH: "${INTERNAL_API_PATH}"
RAZZLE_KEYCLOAK: "${RAZZLE_KEYCLOAK}"
REBUILD: "True"
PORT: '3000'
TZ: "${TZ}"
RAZZLE_PROXY_ES_DSN_datahub: "${DATAHUB_ES_DSN}"
RAZZLE_PROXY_QA_DSN_datahub: "${DATAHUB_QA_DSN}"
RAZZLE_PROXY_ES_DSN_globalsearch: "${GLOBALSEARCH_ES_DSN}"
RAZZLE_PROXY_QA_DSN_globalsearch: "${GLOBALSEARCH_QA_DSN}"
RAZZLE_PROXY_DOCUMENTCOUNTTHRESHOLD_datahub: "${DATAHUB_DOCUMENTCOUNTTHRESHOLD}"
RAZZLE_PROXY_QUERYTIMESECONDSTHRESHOLD_OK_datahub: "${DATAHUB_QUERYTIMESECONDSTHRESHOLD_OK}"
RAZZLE_PROXY_QUERYTIMESECONDSTHRESHOLD_WARNING_datahub: "${DATAHUB_QUERYTIMESECONDSTHRESHOLD_WARNING}"
RAZZLE_PROXY_DOCUMENTCOUNTTHRESHOLD_globalsearch: "${GLOBALSEARCH_DOCUMENTCOUNTTHRESHOLD}"
RAZZLE_PROXY_QUERYTIMESECONDSTHRESHOLD_OK_globalsearch: "${GLOBALSEARCH_QUERYTIMESECONDSTHRESHOLD_OK}"
RAZZLE_PROXY_QUERYTIMESECONDSTHRESHOLD_WARNING_globalsearch: "${GLOBALSEARCH_QUERYTIMESECONDSTHRESHOLD_WARNING}"
labels:
io.rancher.container.hostname_override: container_name
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.scheduler.affinity:host_label_ne: ${HOST_LABELS}
stdin_open: true
tty: true
volumes:
- develop:/opt/frontend/src/addons
command:
- cat
rsync:
image: eeacms/rsync
ports:
- "2222:22"
environment:
SSH_AUTH_KEY: "${SSH_AUTH_KEY}"
TZ: "${TZ}"
stdin_open: true
tty: true
volumes:
- develop:/opt/frontend/src/addons
command:
- server
labels:
io.rancher.container.pull_image: always
io.rancher.container.hostname_override: container_name
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.scheduler.affinity:host_label_ne: ${HOST_LABELS}
{{- end}}
frontend:
image: eeacms/eea-website-frontend:1.17.0
ports:
- "3000"
mem_limit: ${MEM_LIMIT}
mem_reservation: ${MEM_RESERVATION}
depends_on:
- backend
links:
- backend
environment:
SENTRY_URL: ${SENTRY_URL}
SENTRY_AUTH_TOKEN: ${SENTRY_AUTH_TOKEN}
SENTRY_ORG: ${SENTRY_ORG}
SENTRY_PROJECT: ${SENTRY_PROJECT}
RAZZLE_SENTRY_DSN: ${SENTRY_DSN}
SENTRY_RELEASE: '1.17.0'
RAZZLE_BACKEND_NAME: 'eea-website-backend'
RAZZLE_SENTRY_RELEASE: '1.17.0'
RAZZLE_FRONTEND_VERSION: '1.17.0'
RAZZLE_DISABLE_DRAFT_WATERMARK: "${RAZZLE_DISABLE_DRAFT_WATERMARK}"
RAZZLE_ALLOWED_CORS_DESTINATIONS: ${ALLOWED_CORS_DESTINATIONS}
RAZZLE_MATOMO_SITE_ID: "${RAZZLE_MATOMO_SITE_ID}"
RAZZLE_MATOMO_SECOND_SITE_ID: "${RAZZLE_MATOMO_SECOND_SITE_ID}"
RAZZLE_INTERNAL_API_PATH: "${INTERNAL_API_PATH}"
PORT: '3000'
RAZZLE_KEYCLOAK: "${RAZZLE_KEYCLOAK}"
TZ: "${TZ}"
RAZZLE_PROXY_ES_DSN_datahub: "${DATAHUB_ES_DSN}"
RAZZLE_PROXY_QA_DSN_datahub: "${DATAHUB_QA_DSN}"
RAZZLE_PROXY_ES_DSN_globalsearch: "${GLOBALSEARCH_ES_DSN}"
RAZZLE_PROXY_QA_DSN_globalsearch: "${GLOBALSEARCH_QA_DSN}"
RAZZLE_PROXY_DOCUMENTCOUNTTHRESHOLD_datahub: "${DATAHUB_DOCUMENTCOUNTTHRESHOLD}"
RAZZLE_PROXY_QUERYTIMESECONDSTHRESHOLD_OK_datahub: "${DATAHUB_QUERYTIMESECONDSTHRESHOLD_OK}"
RAZZLE_PROXY_QUERYTIMESECONDSTHRESHOLD_WARNING_datahub: "${DATAHUB_QUERYTIMESECONDSTHRESHOLD_WARNING}"
RAZZLE_PROXY_DOCUMENTCOUNTTHRESHOLD_globalsearch: "${GLOBALSEARCH_DOCUMENTCOUNTTHRESHOLD}"
RAZZLE_PROXY_QUERYTIMESECONDSTHRESHOLD_OK_globalsearch: "${GLOBALSEARCH_QUERYTIMESECONDSTHRESHOLD_OK}"
RAZZLE_PROXY_QUERYTIMESECONDSTHRESHOLD_WARNING_globalsearch: "${GLOBALSEARCH_QUERYTIMESECONDSTHRESHOLD_WARNING}"
VOLTO_ROBOTSTXT: "${VOLTO_ROBOTSTXT}"
labels:
io.rancher.scheduler.affinity:host_label_ne: ${HOST_LABELS}
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.hostname_override: container_name
haproxy:
image: eeacms/haproxy:2.0-1.0
mem_limit: 256m
mem_reservation: 256m
ports:
- "3000"
- "1936"
labels:
io.rancher.container.hostname_override: container_name
io.rancher.scheduler.affinity:host_label_ne: ${HOST_LABELS}
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
eu.europa.eea.www.haproxy: 'true'
links:
- frontend
depends_on:
- frontend
environment:
BACKENDS: frontend
STATS_AUTH: "${HAPROXY_AUTH}"
FRONTEND_PORT: "3000"
BACKENDS_PORT: "3000"
DNS_ENABLED: "true"
INTER: "20s"
DOWN_INTER: "5s"
FAST_INTER: "15s"
TIMEOUT_SERVER: "120s"
TIMEOUT_CLIENT: "120s"
TZ: "${TZ}"
HTTPCHK: "GET /ok"
varnish:
image: eeacms/plone-varnish:7.2-1.6
environment:
VARNISH_BACKEND: haproxy
VARNISH_BACKEND_PORT: '3000'
VARNISH_HTTP_PORT: '3000'
VARNISH_SIZE: "${CACHE_SIZE}"
VARNISH_DNS_TTL: 20s
VARNISH_BERESP_TTL: "${VARNISH_BERESP_TTL}"
VARNISH_BERESP_GRACE: "${VARNISH_BERESP_GRACE}"
VARNISH_BERESP_KEEP: "${VARNISH_BERESP_KEEP}"
VARNISH_GZIP_ENABLED: "${VARNISH_GZIP_ENABLED}"
VARNISH_GZIP_JSON_ENABLED: "${VARNISH_GZIP_JSON_ENABLED}"
TZ: "${TZ}"
ports:
- "3000"
links:
- haproxy
depends_on:
- haproxy
labels:
io.rancher.container.hostname_override: container_name
io.rancher.scheduler.affinity:host_label_ne: ${HOST_LABELS}
io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
mem_limit: ${VARNISH_MEM_LIMIT}
mem_reservation: ${VARNISH_MEM_RESERVATION}
backend:
image: rancher/dns-service
external_links:
- ${BACKEND}:backend
{{- if eq .Values.DEBUG "Yes" }}
volumes:
develop:
driver: ${VOLUME_DRIVER}
driver_opts:
{{.Values.VOLUME_DRIVER_OPTS}}
{{- end}}