-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
119 lines (110 loc) · 4.15 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
version: '3'
services:
# The Hadatac Solr Service
solr:
build:
context: ./solr
dockerfile: Dockerfile
container_name: hadatac_solr
restart: always
environment:
SOLR_JAVA_MEM: "-Xms1g -Xmx1g"
# Mount a volume in the mycores directory to persist data that is ingested.
volumes:
- hadatac-solr:/opt/solr/server
# - /path in host server/solr-home:/opt/solr/server/solr/mycores # Uncomment this option to use external binding
networks:
hadatac:
aliases:
- solr
ports:
- "8983:8983"
fuseki:
build: ./fuseki
container_name: hadatac_fuseki
ports:
- "3030:3030"
networks:
hadatac:
aliases:
- fuseki
volumes:
- hadatac-fuseki-data:/fuseki/databases
restart: always
fuseki-yasgui:
build: fuseki-yasgui
container_name: hadatac_fuseki_yasgui
ports:
- "8888:8888"
networks:
hadatac:
aliases:
- fuseki-yasgui
environment:
# This should be a url that points to this container
# Proxies to the /store/sparql endpoint for fuseki
DEFAULT_SPARQL_ENDPOINT: "http://localhost:8888/sparql"
depends_on:
- fuseki
# The primary hadatac web app
hadatac:
build: ./
restart: always
container_name: hadatac
tty: true
ports:
- "9000:9000"
networks:
hadatac:
aliases:
- hadatac
environment:
# Uncomment below setting when using Solr Authentication. Then rename security.json.template under solr/solr-home/ folder to security.json. Add user & passowrd detail in the hadatac.conf/hadatac-docker.conf file. All changes are mandatory for Solr Authentication to work.
# JAVA_OPTS: -Xms128m -Xmx12g -Dsolr.httpclient.builder.factory=org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory -Dbasicauth=solr:SolrRocks
# Comment out below setting when using Solr Authentication
JAVA_OPTS: -Xms128m -Xmx12g
volumes:
# Creates a volume to store the various csv files. This allows the data
# to be persisted when the container is removed or when Hadatac is rebuilt.
# Example command: docker cp <filename> hadatac:/root/app/csvs/unprocessed_csv
# Comment out this option to use external binding
- hadatac-csvs:/hadatac/csvs
- hadatac-working_csv:/hadatac/working_csv
# - /Users/kandws01/Documents/merge3/local:/root/app/csvs # Uncomment this option to use external binding
# Creates a volume for the config files. This way configuration file changes
# are persisted when the container is removed or rebuilt.
# Comment out this option to use external binding
- hadatac-conf:/hadatac/conf
# - /path in host server/conf:/root/app/conf # Uncomment this option to use external binding
- /var/log/hadatac:/hadatac/logs
links:
- fuseki
- solr
depends_on:
- fuseki
- solr
shinyproxy:
image: tetherlessworld/hadatac-shinyproxy:latest
container_name: hadatac_shinyproxy
ports:
- 8081:8080
environment:
- "WORK_DIR=${PWD}"
networks:
hadatac:
aliases:
- shinyproxy
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/var/log/hadatac_shinyproxy/server:/log"
- "/var/log/hadatac_shinyproxy/container:/container-logs"
- "./shinyproxy/application.yml:/opt/shinyproxy/application.yml"
- "./shinyproxy/fragments:/opt/shinyproxy/fragments"
volumes:
hadatac-solr:
hadatac-fuseki-data:
hadatac-csvs:
hadatac-working_csv:
hadatac-conf:
networks:
hadatac: