forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsakai_dev_full.yml
347 lines (335 loc) · 9.13 KB
/
sakai_dev_full.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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
# Using version 2.6 of the compose format
version: '3.6'
# Services Section
services:
#
# HAProxy to handle everything.
#
stackproxy:
image: dockercloud/haproxy:1.6.7
environment:
- "TIMEOUT=connect 5400000, client 5400000, server 5400000"
- "SKIP_FORWARDED_PROTO=true"
networks:
- proxy
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "8080:80"
deploy:
mode: global
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "stackproxy-console"
#
# Shell In A Box on a maven container.
#
builder:
image: maven:3.6.1-jdk-8
volumes:
- "$PWD/lib/maven_entry.sh:/maven_entry.sh"
- "$PWD/CONFIG/maven/zshrc:/root/.zshrc"
- "$PWD/CONFIG/maven/settings.xml:/usr/share/maven/conf/settings.xml"
- "$PWD/CONFIG/maven/black_on_white.css:/black_on_white.css"
- sakai_source:/source
- sakai_deploy:/deploy
- maven_cache:/root/.m2
entrypoint: bash /maven_entry.sh
environment:
- "SERVICE_PORTS=4200"
- "VIRTUAL_HOST_WEIGHT=5"
- "VIRTUAL_HOST=/console/*"
networks:
- proxy
#
# MySQL service.
#
mysql:
# Docker official image for MySQL 5.5
image: mysql:5.7.26
# Extra startup parameters for MySQL
command: --character-set-server=utf8 --collation-server=utf8_general_ci --ssl=0
# Environment Variables
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_DATABASE: sakai
MYSQL_USER: sakai
MYSQL_PASSWORD: examplepassword
# Networks from section near bottom
networks:
- mysql
volumes:
- mysql_data:/var/lib/mysql
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "mysql-console"
#
# Sakai Service
#
sakai:
image: tomcat:9.0.20-jre8
environment:
- "CATALINA_OPTS_MEMORY=-Xms4000m -Xmx4000m"
- "CATALINA_OPTS=-server -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:+UseCompressedOops -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=80 -XX:TargetSurvivorRatio=90 -Djava.awt.headless=true -Dsun.net.inetaddr.ttl=0 -Dsakai.component.shutdownonerror=true -Duser.language=en -Duser.country=US -Dsakai.home=/usr/local/sakai/properties -Dsakai.security=/usr/local/tomcat/sakai -Duser.timezone=US/Eastern -Dsun.net.client.defaultConnectTimeout=300000 -Dsun.net.client.defaultReadTimeout=1800000 -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Dsun.lang.ClassLoader.allowArraySyntax=true -Dhttp.agent=Sakai -Djava.util.Arrays.useLegacyMergeSort=true"
- "SERVICE_PORTS=8080"
- "VIRTUAL_HOST=*"
- "HTTP_CHECK=GET / \"HTTP/1.1\\r\\nHost: ingress.proxy\""
networks:
sakaielastic:
aliases:
- sakaielastic
graylog:
aliases:
- sakai
mysql:
mail:
proxy:
volumes:
- "$PWD/lib/tomcat_entry.sh:/tomcat_entry.sh"
- "$PWD/CONFIG/tomcat/server.xml:/usr/local/tomcat/conf/server.xml"
- "$PWD/CONFIG/tomcat/context.xml:/usr/local/tomcat/conf/context.xml"
- "$PWD/CONFIG/sakai/sakai.properties:/usr/local/sakai/es.properties"
- "sakai_deploy_components:/usr/local/tomcat/components"
- "sakai_deploy_lib:/usr/local/tomcat/sakai-lib"
- "sakai_deploy_webapps:/usr/local/tomcat/webapps"
- "sakai_root:/usr/local/tomcat/webapps/ROOT"
- "sakai_elastic:/search"
- "$PWD/CONFIG/sakai/log4j.properties:/usr/local/sakai/properties/log4j.properties"
entrypoint: bash /tomcat_entry.sh
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "sakai-console"
#
# Mongo Service (for graylog)
#
mongo:
image: mongo:3
networks:
- mongo
volumes:
- "mongo_data:/data/db"
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "mongo-console"
#
# Elasticsearch 6 service (for graylog)
#
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.1
environment:
- "http.host=0.0.0.0"
- "transport.host=localhost"
- "network.host=0.0.0.0"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
networks:
- elastic
volumes:
- "elastic_gl_data:/usr/share/elasticsearch/data"
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "elasticsearch-console"
#
# Graylog Service
#
graylog:
image: graylog/graylog:3.0
environment:
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper
# Password: admin
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:8080/graylog/
- GRAYLOG_CONTENT_PACKS_AUTO_LOAD=udp-input-graylog.json
- GRAYLOG_CONTENT_PACKS_LOADER_ENABLED=true
- GRAYLOG_CONTENT_PACKS_DIR=data/contentpacks
- "SERVICE_PORTS=9000"
- "VIRTUAL_HOST_WEIGHT=5"
- "VIRTUAL_HOST=/graylog/*"
- "EXTRA_SETTINGS=reqrep ^([^\\ :]*)\\ /graylog/(.*) \\1\\ /\\2"
volumes:
- "$PWD/CONFIG/graylog/udp-input-graylog.json:/usr/share/graylog/data/contentpacks/udp-input-graylog.json"
networks:
- mongo
- elastic
- graylog
- proxy
depends_on:
- mongo
- elasticsearch
ports:
# GELF UDP
- 12201:12201/udp
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "graylog-console"
#
# Cerebro service
#
cerebro:
# 3rd party repo for Cerebro (Elasticsearch management)
image: lmenezes/cerebro
environment:
- "VIRTUAL_HOST_WEIGHT=5"
- "VIRTUAL_HOST=/elastic/*"
- "SERVICE_PORTS=9000"
- "EXTRA_SETTINGS=reqrep ^([^\\ :]*)\\ /elastic/(.*) \\1\\ /\\2"
networks:
- elastic
- sakaielastic
- proxy
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "cerebro-console"
#
# Mailcatcher service
#
mailcatcher:
# 3rd party repo fro Mailcatcher (Fake mail server for development and testing)
image: tophfr/mailcatcher:0.7.1
environment:
- "VIRTUAL_HOST_WEIGHT=5"
- "VIRTUAL_HOST=/mail/*"
- "SERVICE_PORTS=1080"
command: "mailcatcher --no-quit --foreground --ip=0.0.0.0 --http-path=/mail"
# Networks from section near bottom
networks:
- mail
- proxy
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "mailcatcher-console"
#
# Kibana Service (Sakai Search)
#
kibana:
image: kibana:4.1.11
networks:
- sakaielastic
- proxy
environment:
- "VIRTUAL_HOST_WEIGHT=5"
- "VIRTUAL_HOST=/kibana/*"
- "SERVICE_PORTS=5601"
- "EXTRA_SETTINGS=reqrep ^([^\\ :]*)\\ /kibana/(.*) \\1\\ /\\2"
- "SERVER_NAME=127.0.0.1"
- "ELASTICSEARCH_URL=http://sakaielastic:9200"
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "kibana-console"
#
# PHPMyAdmin Service
#
phpmyadmin:
image: phpmyadmin/phpmyadmin:4.7
environment:
- "PMA_ARBITRARY=1"
- "PMA_ABSOLUTE_URI=http://127.0.0.1/pma/"
- "VIRTUAL_HOST_WEIGHT=5"
- "VIRTUAL_HOST=/pma/*"
- "SERVICE_PORTS=80"
- "EXTRA_SETTINGS=reqrep ^([^\\ :]*)\\ /pma/(.*) \\1\\ /\\2"
networks:
- mysql
- proxy
logging:
driver: "gelf"
options:
gelf-address: "udp://127.0.0.1:12201"
tag: "phpmyadmin-console"
networks:
sakaielastic:
driver: overlay
ipam:
config:
- subnet: 10.99.99.0/24
elastic:
driver: overlay
mysql:
driver: overlay
mail:
driver: overlay
proxy:
driver: overlay
mongo:
driver: overlay
graylog:
driver: overlay
volumes:
sakai_source:
driver_opts:
type: none
device: $PWD/sakai/source
o: bind
sakai_root:
driver_opts:
type: none
device: $PWD/DATA/ROOT
o: bind
sakai_deploy:
driver_opts:
type: none
device: $PWD/sakai/deploy
o: bind
sakai_deploy_components:
driver_opts:
type: none
device: $PWD/sakai/deploy/components
o: bind
sakai_deploy_lib:
driver_opts:
type: none
device: $PWD/sakai/deploy/lib
o: bind
sakai_deploy_webapps:
driver_opts:
type: none
device: $PWD/sakai/deploy/webapps
o: bind
maven_cache:
driver_opts:
type: none
device: $PWD/DATA/maven
o: bind
mysql_data:
driver_opts:
type: none
device: $PWD/DATA/mysql
o: bind
sakai_config:
driver_opts:
type: none
device: $PWD/CONFIG/sakai
o: bind
mongo_data:
driver_opts:
type: none
device: $PWD/DATA/mongo
o: bind
elastic_gl_data:
driver_opts:
type: none
device: $PWD/DATA/elastic/graylog
o: bind
sakai_elastic:
driver_opts:
type: none
device: $PWD/DATA/elastic/sakai
o: bind