-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose-web.yml
166 lines (154 loc) · 5.05 KB
/
docker-compose-web.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
version: "2"
services:
#debugger:
# image: sjourdan/toolbox
# container_name: debugger
# networks:
# - squirrel:latest
# dns: 8.8.8.8
# command: nc -l 50070
##configure ckan to open port of python end point
#ckan:
# image: python:latest
# container_name: ckan
# networks:
# - squirrel:latest
# command: python rabbitrecieve.py
# ports:
frontier:
image: squirrel.frontier:latest
container_name: frontier
environment:
- HOBBIT_RABBIT_HOST=rabbit
- SEED_FILE=/var/squirrel/seeds.txt
- URI_WHITELIST_FILE=/var/squirrel/whitelist.txt
- FRONTIER_CONTEXT_CONFIG_FILE=/var/squirrel/spring-config/frontier-context.xml
- MDB_HOST_NAME=mongodb
- MDB_PORT=27017
- MDB_CONNECTION_TIME_OUT=5000
- MDB_SOCKET_TIME_OUT=10000
- MDB_SERVER_TIME_OUT=10000
- COMMUNICATION_WITH_WEBSERVICE=true
- VISUALIZATION_OF_CRAWLED_GRAPH=true
volumes:
- ./data/frontier:/var/squirrel/data
- ./seed/seeds.txt:/var/squirrel/seeds.txt:ro
- ./whitelist/whitelist.txt:/var/squirrel/whitelist.txt:ro
command: java -cp squirrel.jar org.dice_research.squirrel.components.FrontierComponentStarter
web:
image: squirrel.web:latest
container_name: web
environment:
- HOST=rabbit
ports:
- "8080:8080"
command: java -jar squirrel.web.jar
sparqlhost:
image: stain/jena-fuseki
container_name: sparqlhost
ports:
- "3030:3030"
volumes:
- ./data/sparqlhost/sparqlhost_data:/fuseki
environment:
- ADMIN_PASSWORD=pw123
- JVM_ARGS=-Xmx2g
rethinkdb:
image: rethinkdb:2.3.5
volumes:
- ./data/rethinkdb:/data
ports:
- "28015:28015"
# message bus
rabbit:
image: rabbitmq:management
container_name: rabbit
hostname: rabbit
ports:
- "8081:15672"
# Forwarding the port for testing
- "5672:5672"
mongodb:
image: mongo:4.0.0
volumes:
- ./data/mongodb:/data
ports:
- "27017:27017"
worker1:
image: squirrel.worker:latest
container_name: worker1
environment:
- HOBBIT_RABBIT_HOST=rabbit
- OUTPUT_FOLDER=/var/squirrel/data
- HTML_SCRAPER_YAML_PATH=/var/squirrel/yaml
- CONTEXT_CONFIG_FILE=/var/squirrel/spring-config/worker-context-sparql.xml
- SPARQL_URL=http://virtuosohost:8890/sparql-auth/
- SPARQL_HOST_USER=dba
- SPARQL_HOST_PASSWD=pw123
- DEDUPLICATION_ACTIVE=false
- MDB_HOST_NAME=mongodb
- MDB_PORT=27017
- JVM_ARGS=-Xmx8g
volumes:
- ./data/worker1:/var/squirrel/data
- ./yaml:/var/squirrel/yaml
- ./spring-config:/var/squirrel/spring-config
#- ./whitelist/ckanwhitelist.txt:/var/squirrel/ckanwhitelist.txt:ro
command: java -cp squirrel.jar org.dice_research.squirrel.components.WorkerComponentStarter
worker2:
image: squirrel.worker:latest
container_name: worker2
environment:
- HOBBIT_RABBIT_HOST=rabbit
- OUTPUT_FOLDER=/var/squirrel/data
- HTML_SCRAPER_YAML_PATH=/var/squirrel/yaml
- CONTEXT_CONFIG_FILE=/var/squirrel/spring-config/worker-context-sparql.xml
- SPARQL_URL=http://virtuosohost:8890/sparql-auth/
- SPARQL_HOST_USER=dba
- SPARQL_HOST_PASSWD=pw123
- DEDUPLICATION_ACTIVE=false
- MDB_HOST_NAME=mongodb
- MDB_PORT=27017
- JVM_ARGS=-Xmx8g
volumes:
- ./data/worker2:/var/squirrel/data
- ./yaml:/var/squirrel/yaml
- ./spring-config:/var/squirrel/spring-config
#- ./whitelist/ckanwhitelist.txt:/var/squirrel/ckanwhitelist.txt:ro
command: java -cp squirrel.jar org.dice_research.squirrel.components.WorkerComponentStarter
worker3:
image: squirrel.worker:latest
container_name: worker3
environment:
- HOBBIT_RABBIT_HOST=rabbit
- OUTPUT_FOLDER=/var/squirrel/data
- HTML_SCRAPER_YAML_PATH=/var/squirrel/yaml
- CONTEXT_CONFIG_FILE=/var/squirrel/spring-config/worker-context-sparql.xml
- SPARQL_URL=http://virtuosohost:8890/sparql-auth/
- SPARQL_HOST_USER=dba
- SPARQL_HOST_PASSWD=pw123
- DEDUPLICATION_ACTIVE=false
- MDB_HOST_NAME=mongodb
- MDB_PORT=27017
- JVM_ARGS=-Xmx8g
volumes:
- ./data/worker3:/var/squirrel/data
- ./yaml:/var/squirrel/yaml
- ./spring-config:/var/squirrel/spring-config
#- ./whitelist/ckanwhitelist.txt:/var/squirrel/ckanwhitelist.txt:ro
command: java -cp squirrel.jar org.dice_research.squirrel.components.WorkerComponentStarter
# deduplicator:
# image: squirrel
# container_name: deduplicator
# environment:
# DEDUPLICATION_ACTIVE: "true"
# HOBBIT_RABBIT_HOST: rabbit
# OUTPUT_FOLDER: /var/squirrel/data
# MDB_HOST_NAME: mongodb
# MDB_PORT: 27017
# SPARQL_HOST_NAME: sparqlhost
# SPARQL_HOST_PORT: 3030
# SERVICE_PRECONDITION: "rethinkdb:28015 rabbit:5672"
# volumes:
# - ./data/deduplicator:/var/squirrel/data
# command: java -cp squirrel.jar org.hobbit.core.run.ComponentStarter org.dice_research.squirrel.components.DeduplicatorComponent