This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
306 lines (278 loc) · 7.28 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
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
version: '2'
volumes:
fcrepo-ds:
fcrepo-obj:
solr:
redis:
db:
zk1:
zkconf:
stacks:
purl:
dor:
sdr:
services:
zookeeper:
image: zookeeper
restart: always
environment:
- ZOO_MY_ID=1
- ZOO_SERVERS=server.1=zoo1:2888:3888
expose:
- 2181
volumes:
- zk1:/data
- zkconf:/conf
solr:
image: solr
command: solr -c -f -z zookeeper:2181
environment:
VIRTUAL_HOST: solr.${VIRTUAL_HOST_DOMAIN}
depends_on:
- zookeeper
expose:
- 8983
volumes:
- solr:/data
solr_config_loader:
image: phusion/passenger-ruby24
command: /app/solr_config_loader/bin/load
depends_on:
- solr
volumes:
- ./:/app
fcrepo:
build: ./fcrepo/
expose:
- 8080
environment:
VIRTUAL_HOST: fcrepo.${VIRTUAL_HOST_DOMAIN}
depends_on:
- karaf
volumes:
- fcrepo-obj:/usr/local/fedora/data/datastreamStore
- fcrepo-ds:/usr/local/fedora/data/objectStore
db:
image: postgres
volumes:
- db:/var/lib/postgresql/data
redis:
image: redis:3
command: redis-server
ports:
- 6379
volumes:
- redis:/data
karaf:
build: ./karaf/
environment:
VIRTUAL_HOST: karaf.${VIRTUAL_HOST_DOMAIN}
VIRTUAL_PORT: 8181
entrypoint: /opt/karaf/bin/karaf server
ports:
- 8181
- 61613
- 61616
volumes:
- ./karaf/deploy:/deploy
suri:
build: ./suri/
environment:
DATABASE_URL: postgres://postgres@db:5432/suri
VIRTUAL_HOST: suri.${VIRTUAL_HOST_DOMAIN}
depends_on:
- db
# needs db config
workflow-service:
build: ./workflow-service/
environment:
VIRTUAL_HOST: workflow-service.$VIRTUAL_HOST_DOMAIN
DATABASE_URL: postgres://postgres@db:5432/workflow-service
depends_on:
- db
# workflow-archiver-service:
# build: ./workflow-archiver-service/
# depends_on:
# - db
dor-services-app:
build: ./dor-services-app/
environment:
SETTINGS__SOLRIZER_URL: http://solr:8983/solr/argo
SETTINGS__SURI__URL: http://suri
SETTINGS__WORKFLOW_URL: http://workflow-service/
SETTINGS__SDR_URL: http://sdr-services-app/
SETTINGS__CONTENT__SDR_SERVER_URL: http://sdr-services-app/
VIRTUAL_HOST: dor-services-app.${VIRTUAL_HOST_DOMAIN}
depends_on:
- fcrepo
- solr
- suri
- workflow-service
volumes:
- dor:/dor
# oci8 dependency..
# sdr-services-app:
# build: ./sdr-services-app/
# volumes:
# - sdr:/sdr
dor_indexing_app:
build: ./dor_indexing_app/
environment:
SETTINGS__DOR_SERVICES_URL: http://dor-services-app/
SETTINGS__FEDORA_URL: http://fcrepo/fedora
SETTINGS__SOLRIZER_URL: http://solr:8983/solr/argo
SETTINGS__WORKFLOW_URL: http://workflow-service/
VIRTUAL_HOST: dor_indexing_app.${VIRTUAL_HOST_DOMAIN}
depends_on:
- fcrepo
- solr
- workflow-service
- dor-services-app
argo-app:
build: ./argo/
environment:
DATABASE_URL: postgres://postgres@db:5432/argo
SOLR_URL: http://solr:8983/solr/argo # TODO
SETTINGS__DOR_SERVICES_URL:
SETTINGS__DOR_INDEXING_URL:
SETTINGS__FEDORA_URL:
SETTINGS__MODSULATOR_URL:
SETTINGS__NORMALIZER_URL:
SETTINGS__PURL_URL:
SETTINGS__SOLRIZER_URL: http://solr:8983/solr/argo
SETTINGS__STACKS_FILE_URL:
SETTINGS__STACKS_URL:
SETTINGS__WORKFLOW_URL:
SETTINGS__SURI__URL:
argo-web:
extends: argo-app
depends_on:
- dor-services-app
- modsulator-app
- db
- suri
environment:
VIRTUAL_HOST: argo.${VIRTUAL_HOST_DOMAIN}
argo-workers:
extends: argo-app
command: bundle exec eye load -f config/eye/delayed_job_workers.eye
depends_on:
- dor-services-app
- modsulator-app
- db
modsulator-app:
build: ./modsulator-app/
environment:
VIRTUAL_HOST: modsulator-app.${VIRTUAL_HOST_DOMAIN}
hydrus:
build: ./hydrus/
environment:
DATABASE_URL: postgres://postgres@db:5432/hydrus
VIRTUAL_HOST: hydrus.${VIRTUAL_HOST_DOMAIN}
SOLR_URL: http://solr:8983/solr/hydrus
depends_on:
- dor-services-app
- suri
- db
# etds:
# build: ./etds/
# depends_on:
# - fcrepo
# - solr
# - suri
# - db
image-server:
build: ./image-server/
environment:
VIRTUAL_HOST: image-server.${VIRTUAL_HOST_DOMAIN}
volumes:
- stacks:/stacks
stacks:
build: ./stacks/
environment:
SETTINGS__STACKS__STORAGE_ROOT: /stacks
SETTINGS__PURL__URL: http://purl/
SETTINGS__CORS__ALLOW_ORIGIN_URL: http://sul-embed.${VIRTUAL_HOST_DOMAIN}/
SETTINGS__STACKS__REMOTE_IIIF__IMAGE__ATTRIBUTES__BASE_URI: 'http://image-server/iiif/2/'
SETTINGS__STACKS__REMOTE_IIIF__METADATA__ATTRIBUTES__BASE_URI: 'http://image-server/iiif/2/'
VIRTUAL_HOST: stacks.${VIRTUAL_HOST_DOMAIN}
depends_on:
- purl
- image-server
volumes:
- stacks:/stacks
purl:
build: ./purl/
environment:
SETTINGS__DOCUMENT_CACHE_ROOT: /purl
SETTINGS__PURL_RESOURCE__MODS: /purl/%{druid_tree}/mods
SETTINGS__PURL_RESOURCE__PUBLIC_XML: /purl/%{druid_tree}/public
SETTINGS__STACKS__URL: http://stacks.${VIRTUAL_HOST_DOMAIN}/
SETTINGS__EMBED_HOST: http://sul-embed/
SETTINGS__EMBED__URL: http://sul-embed.${VIRTUAL_HOST_DOMAIN}/%{druid}
SETTINGS__EMBED__URL_TEMPLATE: http://sul-embed.${VIRTUAL_HOST_DOMAIN}/{?format,url*,application_options*}
SETTINGS__EMBED__IFRAME__URL_TEMPLATE: http://sul-embed.${VIRTUAL_HOST_DOMAIN}/iframe{?url*}
VIRTUAL_HOST: purl.${VIRTUAL_HOST_DOMAIN}
volumes:
- purl:/purl
purl-fetcher:
build: ./purl-fetcher/
environment:
DATABASE_URL: postgres://postgres@db:5432/purl-fetcher
VIRTUAL_HOST: purl-fetcher.${VIRTUAL_HOST_DOMAIN}
volumes:
- purl:/purl
sul-embed:
build: ./sul-embed
environment:
SETTINGS__PURL_URL: http://purl.${VIRTUAL_HOST_DOMAIN}/
SETTINGS__VALID_PURL_URL: # TODO...
SETTINGS__STACKS_URL: http://stacks.${VIRTUAL_HOST_DOMAIN}/
SETTINGS__EMBED_IFRAME_URL: http://sul-embed.${VIRTUAL_HOST_DOMAIN}/iframe
SETTINGS__GEO_EXTERNAL_URL: # TODO
SETTINGS__GEO_WMS_URL: # TODO
SETTINGS__WAS_THUMBS_URL: # TODO
VIRTUAL_HOST: sul-embed.${VIRTUAL_HOST_DOMAIN}
depends_on:
- purl
discovery-dispatcher:
build: ./discovery-dispatcher/
environment:
DATABASE_URL: postgres://postgres@db:5432/discovery-dispatcher
VIRTUAL_HOST: discovery-dispatcher.${VIRTUAL_HOST_DOMAIN}
depends_on:
- purl-fetcher
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
# robots:
# build: ./robots/
# depends_on:
# - redis
# - fcrepo
# - solr
# - dor-services-app
# volumes:
# - dor:/dor
# - stacks:/stacks
# - purl:/purl
#
robot-master:
build: ./robot-master/
depends_on:
- redis
- workflow-service
#
# sdr-preservation-core-robots:
# build: ./sdr-preservation-core-robots
# volumes:
# - sdr:/sdr
#
# catalog-service:
# build: ./catalog-service
#
# preassembly:
# build: ./preassembly