forked from Islandora-Collaboration-Group/ISLE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
executable file
·391 lines (353 loc) · 11.1 KB
/
docker-compose.test.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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
version: '3.7'
#### docker-compose up -d;
## Test Environment - Used by ISLE contributors for testing ISLE releases, ISLE development and submitting pull releases etc.
## Updated 2020-12 - Release 1.5.3 (@ 1.5.3)
services:
isle-portainer: ## Renamed to avoid conflicts on systems/servers with portainer already running.
image: portainer/portainer
container_name: isle-portainer-${CONTAINER_SHORT_ID}
command: -H unix:///var/run/docker.sock --no-auth
networks:
- isle-internal
ports:
- "9010:9000" ## Remapped to avoid conflicts on systems/servers with portainer already running.
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- isle-portainer-data:/data
labels:
- traefik.port=9000
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
## Enabling access the Portainer interface via traefik is not safe in a production environment unless
## you have the ISLE system behind a firewall and, overall, only ports 80 and 443 exposed.
- traefik.enable=true
- "traefik.frontend.rule=Host:portainer.${BASE_DOMAIN};"
## (Optional): Uncomment lines below to run ISLE with the TICK monitoring system
logging:
driver: syslog
options:
tag: "{{.Name}}"
mysql:
image: islandoracollabgroup/isle-mysql:1.5.3
container_name: isle-mysql-${CONTAINER_SHORT_ID}
env_file:
- test.env
networks:
- isle-internal
## (Optional): Uncomment to open up the MySQL service on its standard port. Use behind a firewall and do not expose this port publicly.
## For the demo or local environments, change the first 3306 to 9306 if an additional MySQL server is being run locally to avoid port conflict.
#ports:
# - "3306:3306"
volumes:
## Customization: Allows for additional tuning of MySQL.
- ./config/mysql/ISLE.cnf:/etc/mysql/mysql.conf.d/ISLE.cnf
- isle-db-data:/var/lib/mysql
## (Optional): Uncomment lines below to run ISLE with the TICK monitoring system
logging:
driver: syslog
options:
tag: "{{.Name}}"
fedora:
image: islandoracollabgroup/isle-fedora:1.5.3
container_name: isle-fedora-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=768M
- JAVA_MIN_MEM=128M
env_file:
- test.env
networks:
- isle-internal
ports:
- "8081:8080"
depends_on:
- mysql
- solr
volumes:
- isle-fedora-datastreamStore:/usr/local/fedora/data/datastreamStore
- isle-fedora-objectStore:/usr/local/fedora/data/objectStore
- isle-fedora-resourceIndex:/usr/local/fedora/data/resourceIndex
- isle-fedora-activemq:/usr/local/fedora/data/activemq-data
- isle-fedora-XACML:/usr/local/fedora/data/fedora-xacml-policies
## (Optional): Uncomment lines below to run ISLE with the TICK monitoring system
logging:
driver: syslog
options:
tag: "{{.Name}}"
solr:
image: islandoracollabgroup/isle-solr:1.5.3
container_name: isle-solr-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=512M
- JAVA_MIN_MEM=0
env_file:
- test.env
networks:
- isle-internal
ports:
- "8082:8080"
depends_on:
- mysql
volumes:
- isle-solr-data:/usr/local/solr
## (Optional): Uncomment lines below to run ISLE with the TICK monitoring system
logging:
driver: syslog
options:
tag: "{{.Name}}"
image-services:
image: islandoracollabgroup/isle-imageservices:1.5.3
container_name: isle-images-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=512M
- JAVA_MIN_MEM=0
env_file:
- test.env
networks:
- isle-internal
depends_on:
- apache
- fedora
ports:
- "8083:8080"
labels:
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
## Making image-services accessible via traefik is not safe and not recommended
- traefik.enable=false
- "traefik.frontend.rule=Host:images.${BASE_DOMAIN}; PathPrefix: /, /cantaloupe"
## (Optional): Uncomment lines below to run ISLE with the TICK monitoring system
logging:
driver: syslog
options:
tag: "{{.Name}}"
apache:
image: islandoracollabgroup/isle-apache:1.5.3
container_name: isle-apache-${CONTAINER_SHORT_ID}
env_file:
- .env
- test.env
networks:
isle-internal:
depends_on:
- mysql
- fedora
- solr
- traefik
volumes:
# Customization: Bind mounting Drupal Code instead of using default Docker volumes for local development with an IDE.
## The next line is a suggested path and users can change values to the left of the : to match their Apache data folder of choice.
- ./data/apache/html:/var/www/html:cached
# Customization: Separate settings.php files based on environment.
- ./config/apache/settings_php/settings.test.php:/var/www/html/sites/default/settings.php
## (Optional): Uncomment line below to allow bind mounting of the php.ini file for editing of php memory, upload and max_post values.
- ./config/apache/php_ini/php.test.ini:/etc/php/7.1/apache2/php.ini
labels:
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
- traefik.enable=true
# BELOW line commented out to allow Varnish to handle requests in front of Apache
# - "traefik.frontend.rule=Host:${BASE_DOMAIN}; PathPrefix: /, /cantaloupe"
## (Optional): Uncomment lines below to run ISLE with the TICK monitoring system
logging:
driver: syslog
options:
tag: "{{.Name}}"
traefik:
image: traefik:1.7.9
container_name: isle-proxy-${CONTAINER_SHORT_ID}
networks:
isle-internal:
isle-external:
env_file:
- test.env
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./config/proxy/ssl-certs:/certs:ro
- ./config/proxy/traefik.test.toml:/etc/traefik/traefik.toml
labels:
- traefik.port=8080
## Enabling access to the Traefik interface is not safe in a production environment unless you have the
## ISLE system behind a firewall and only ports 80 and 443 exposed.
- traefik.enable=true
- traefik.frontend.rule=Host:admin.${BASE_DOMAIN};
## (Optional): Uncomment lines below to run ISLE with the TICK monitoring system
logging:
driver: syslog
options:
tag: "{{.Name}}"
# Start - Automated Testing section
chrome:
image: selenium/node-chrome:3.141.59-neon # latest
container_name: isle-chrome-${CONTAINER_SHORT_ID}
environment:
- HUB_PORT=4444
- HUB_HOST=hub
networks:
- isle-internal
depends_on:
- apache
- hub
volumes:
- /dev/shm:/dev/shm
- ./data/apache/html:/var/www/html:ro
hub:
image: selenium/hub:3.141.59-neon # latest
container_name: isle-hub-${CONTAINER_SHORT_ID}
networks:
- isle-internal
ports:
- "4444:4444"
# End - Automated Testing section
# Start - TICK stack services section
influxdb:
image: influxdb:latest
container_name: isle-influxdb-${CONTAINER_SHORT_ID}
networks:
isle-internal:
ports:
# The API for InfluxDB is served on port 8086
- "8086:8086"
- "8088:8088"
# UDP Port
- "8089:8089"
volumes:
# Mount for influxdb data directory
- isle-influxdb-data:/var/lib/influxdb
# Mount for influxdb configuration
- ./config/tick/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf
logging:
driver: syslog
options:
tag: "{{.Name}}"
telegraf:
image: telegraf:latest
# Telegraf requires network access to InfluxDB
container_name: isle-telegraf-${CONTAINER_SHORT_ID}
networks:
isle-internal:
depends_on:
- influxdb
ports:
# This port should be for rsyslog
- "6514:6514"
volumes:
# Mount for telegraf configuration
- ./config/tick/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
# Mount for Docker API access
- /var/run/docker.sock:/var/run/docker.sock:ro
# To get metrics off the host
- /:/hostfs:ro
- /etc:/hostfs/etc:ro
- /proc:/hostfs/proc:ro
- /sys:/hostfs/sys:ro
- /var/run/utmp:/var/run/utmp:ro
logging:
driver: syslog
options:
tag: "{{.Name}}"
kapacitor:
image: kapacitor:latest
container_name: isle-kapacitor-${CONTAINER_SHORT_ID}
networks:
isle-internal:
# Kapacitor requires network access to Influxdb
ports:
# The API for Kapacitor is served on port 9092
- "9092:9092"
volumes:
# Mount for kapacitor data directory
- isle-kapacitor-data:/var/lib/kapacitor
# Mount for kapacitor configuration
- ./config/tick/kapacitor/kapacitor.conf:/etc/kapacitor/kapacitor.conf
logging:
driver: syslog
options:
tag: "{{.Name}}"
chronograf:
image: chronograf:latest
container_name: isle-chronograf-${CONTAINER_SHORT_ID}
environment:
- RESOURCES_PATH="/usr/share/chronograf/resources"
- LOG_LEVEL=error
networks:
isle-internal:
ports:
# The WebUI for Chronograf is served on port 8888
- "8888:8888"
depends_on:
- kapacitor
- influxdb
- telegraf
volumes:
# Mount for chronograf database
- isle-chronograf-data:/var/lib/chronograf
logging:
driver: syslog
options:
tag: "{{.Name}}"
# END - TICK stack services section
# Start - Blazegraph service section
isle-blazegraph:
image: islandoracollabgroup/isle-blazegraph:1.5.3
container_name: isle-blazegraph-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=4096M
- JAVA_MIN_MEM=1024M
env_file:
- test.env
networks:
- isle-internal
ports:
- "8084:8080"
volumes:
- isle-blazegraph-data:/var/bigdata
logging:
driver: syslog
options:
tag: "{{.Name}}"
# END - Blazegraph service section
# Start - Varnish service section
## (Optional-component): Uncomment lines below to run ISLE with the Varnish cache
varnish:
image: islandoracollabgroup/isle-varnish:1.5.3
container_name: isle-varnish-${CONTAINER_SHORT_ID}
env_file:
- production.env
- .env
networks:
isle-internal:
depends_on:
- mysql
- fedora
- solr
- apache
- traefik
labels:
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
- traefik.port=6081
- traefik.enable=true
- "traefik.frontend.rule=Host:${BASE_DOMAIN}; PathPrefix: /, /cantaloupe"
logging:
driver: syslog
options:
tag: "{{.Name}}"
# END - Varnish service section
# Defined networks
networks:
isle-internal:
isle-external:
volumes:
isle-db-data:
isle-solr-data:
# Removed isle-apache-data: # Bind-mounted instead for IDE integration / development
isle-portainer-data:
isle-fedora-datastreamStore:
isle-fedora-objectStore:
isle-fedora-resourceIndex:
isle-fedora-activemq:
isle-fedora-XACML:
isle-influxdb-data:
isle-kapacitor-data:
isle-chronograf-data:
isle-blazegraph-data: