-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.production.yml
308 lines (276 loc) · 10.2 KB
/
docker-compose.production.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
version: '3.7'
#### docker-compose up -d;
## Production Environment - Used for remote (non-local / cloud) hosting of a Production site. Site and collections are public and accessible to the world.
## Updated 2024-01 - Release 1.5.28 (@ 1.5.28)
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.28
container_name: isle-mysql-${CONTAINER_SHORT_ID}
env_file:
- production.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.28
container_name: isle-fedora-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=4096M
- JAVA_MIN_MEM=1024M
env_file:
- production.env
networks:
- isle-internal
ports:
- "8081:8080"
depends_on:
- mysql
- solr
volumes:
## Customization: Bind mounting the two Fedora data paths below instead of using default Docker volumes
## Next two lines are suggested paths and users can change values to the left of the : to match their Fedora data folders of choice.
- /mnt/data/fedora/datastreamStore:/usr/local/fedora/data/datastreamStore
- /opt/data/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.28
container_name: isle-solr-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=2048M
- JAVA_MIN_MEM=512M
env_file:
- production.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.28
container_name: isle-images-${CONTAINER_SHORT_ID}
environment:
- JAVA_MAX_MEM=2048M
- JAVA_MIN_MEM=512M
env_file:
- production.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.28
container_name: isle-apache-${CONTAINER_SHORT_ID}
env_file:
- .env
- production.env
networks:
isle-internal:
depends_on:
- mysql
- fedora
- solr
- traefik
volumes:
# Customization: Bind mounting Drupal Code instead of using default Docker volumes.
## 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.
- /opt/data/apache/html:/var/www/html
# Customization: Separate settings.php files based on environment.
# Ensure that the values from the production.env have been inserted in the corresponding ISLE configuration sections of the settings.production.php
- ./config/apache/settings_php/settings.production.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.production.ini:/etc/php/7.1/apache2/php.ini
labels:
- traefik.docker.network=${COMPOSE_PROJECT_NAME}_isle-internal
- traefik.enable=true
- "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:
- production.env
ports:
- "80:80"
- "443:443"
#- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# SSL Choice 1: To use Let's Encrypt for SSL- uncomment ONLY the line below and then create an empty config/proxy/acme.json file
# - ./config/proxy/acme.json:/acme.json
# SSL Choice 2: To use commercial SSLs - uncomment ONLY the line below. Add your SSL certs (.cert, .pem, .key) files to config/proxy/ssl-certs
# - ./config/proxy/ssl-certs:/certs:ro
# Based on the choice of SSL type made above, you'll need to refer to this /config/proxy/traefik.production.toml file for further configuration instructions.
- ./config/proxy/traefik.production.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=false
- 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 - TICK stack services section
## (Optional): Uncomment lines below to run ISLE with the TICK monitoring system
# telegraf:
# image: telegraf:latest
# # Telegraf requires network access to InfluxDB
# container_name: isle-telegraf-${CONTAINER_SHORT_ID}
# networks:
# isle-internal:
# ports:
# # This port should be for rsyslog
# - "6514:6514"
# volumes:
# # Mount for telegraf configuration
# - ./config/tick/telegraf/telegraf.production.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}}"
# END - TICK stack services section
# Start - Blazegraph service section
## (Optional-component): Uncomment lines below to run ISLE with the Blazegraph triplestore instead of default Mulgara
# isle-blazegraph:
# image: islandoracollabgroup/isle-blazegraph:1.5.28
# container_name: isle-blazegraph-${CONTAINER_SHORT_ID}
# environment:
# - JAVA_MAX_MEM=4096M
# - JAVA_MIN_MEM=1024M
# env_file:
# - production.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.28
# 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:
isle-portainer-data:
isle-fedora-resourceIndex:
isle-fedora-activemq:
isle-fedora-XACML:
## (Optional component): Uncomment line below to run ISLE with the Blazegraph triplestore instead of default Mulgara
#isle-blazegraph-data:
# Customization: Bindmounts used instead of docker volumes
# removed isle-apache-data: Bind-mounting for custom Drupal code
# removed isle-fedora-datastreamStore: Bind-mounting for the Fedora data
# removed isle-fedora-objectStore: Bind-mounting for the Fedora data
# Customization - End