-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
76 lines (72 loc) · 2.5 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
version: "2.2"
services:
researchspace:
image: ${RESEARCHSPACE_IMAGE}
restart: unless-stopped
mem_limit: ${RESEARCHSPACE_MEMORY}
mem_reservation: ${RESEARCHSPACE_MEMORY}
ports:
- "10214:8080"
environment:
# 1. Connect researchspace instance to blazegraph instance, in this case we use internal hostname available only inside docker-compose create network.
# 2. Set default logging profile to log4j2, other possible options are log4j2-debug.xml, log4j2-trace.xml
# 3-5. Create storage needed for image upload functionality
# 6-8. Create temp storage needed for image upload functionality
# 7. Additional options provided in .env file
PLATFORM_OPTS: >-
-Dconfig.environment.sparqlEndpoint=http://blazegraph:8080/blazegraph/sparql
-Dlog4j.configurationFile=classpath:org/researchspace/logging/log4j2.xml
-Dconfig.storage.images.type=nonVersionedFile
-Dconfig.storage.images.mutable=true
-Dconfig.storage.images.root=/images
-Dconfig.storage.tmp.type=nonVersionedFile
-Dconfig.storage.tmp.mutable=true
-Dconfig.storage.tmp.root=/tmp-data
${RESEARCHSPACE_OPTS}
JAVA_OPTS: ${RESEARCHSPACE_JAVA_OPTS}
volumes:
# mount folder where uploaded images should be stored
- ./researchspace/data/images:/images:rw
# mount folder where temporary files should be stored
- ./researchspace/data/tmp:/tmp-data:rw
# runtime data folder with config files and ad-hoc templates
- ./researchspace/runtime-data:/runtime-data
depends_on:
- blazegraph
- digilib
logging:
driver: json-file
options:
max-size: "200k"
max-file: "10"
blazegraph:
image: ${BLAZEGRAPH_IMAGE}
restart: unless-stopped
mem_limit: ${BLAZEGRAPH_MEMORY}
mem_reservation: ${BLAZEGRAPH_MEMORY}
ports:
- "10215:8080"
environment:
JAVA_OPTS: ${BLAZEGRAPH_JAVA_OPTS}
volumes:
- ./blazegraph/:/blazegraph-data
logging:
driver: json-file
options:
max-size: "200k"
max-file: "10"
digilib:
image: ${DIGILIB_IMAGE}
restart: unless-stopped
mem_limit: ${DIGILIB_MEMORY}
mem_reservation: ${DIGILIB_MEMORY}
environment:
BASEDIR_LIST: /var/lib/images
IIIF_IMAGE_BASE_URL: "http://localhost:10214/proxy/IIIF/"
volumes:
- ./researchspace/data/images/file:/var/lib/images:rw
logging:
driver: json-file
options:
max-size: "200k"
max-file: "10"