forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsakai_dev_tools_search.yml
223 lines (213 loc) · 6.08 KB
/
sakai_dev_tools_search.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
# 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
#
# 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
#
# 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
mysql:
mail:
proxy:
volumes:
- "$PWD/lib/tomcat_entry_nogl.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"
- "$PWD/DATA/ROOT/index_dev_tools_search.html:/usr/local/tomcat/webapps/ROOT/index.html"
- "sakai_elastic:/search"
entrypoint: bash /tomcat_entry.sh
#
# 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:
- sakaielastic
- proxy
#
# 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
#
# 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"
#
# 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
networks:
sakaielastic:
driver: overlay
ipam:
config:
- subnet: 10.99.99.0/24
mysql:
driver: overlay
mail:
driver: overlay
proxy:
driver: overlay
mongo:
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
sakai_elastic:
driver_opts:
type: none
device: $PWD/DATA/elastic/sakai
o: bind