forked from dice-group/Squirrel
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-sparql.yml
129 lines (120 loc) · 3.96 KB
/
docker-compose-sparql.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
version: "2"
services:
#debugger:
# image: sjourdan/toolbox
# container_name: debugger
# networks:
# - squirrel:latest
# dns: 8.8.8.8
# command: nc -l 50070
frontier:
image: squirrel:latest
container_name: frontier
environment:
- HOBBIT_RABBIT_HOST=rabbit
- SEED_FILE=/var/squirrel/seeds.txt
- URI_WHITELIST_FILE=/var/squirrel/whitelist.txt
- RDB_HOST_NAME=rethinkdb
- RDB_PORT=28015
- COMMUNICATION_WITH_WEBSERVICE=false
- VISUALIZATION_OF_CRAWLED_GRAPH=false
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.hobbit.core.run.ComponentStarter org.aksw.simba.squirrel.components.FrontierComponent
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:
- "8080:8080"
command: rethinkdb --bind all
# message bus
rabbit:
image: rabbitmq:management
container_name: rabbit
hostname: rabbit
ports:
- "8081:15672"
# Forwarding the port for testing
- "5672:5672"
worker1:
image: squirrel: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/context-sparqlStoreBased.xml
- SPARQL_HOST_NAME=sparqlhost
- SPARQL_HOST_PORT=3030
- DEDUPLICATION_ACTIVE=true
- RDB_HOST_NAME=rethinkdb
- RDB_PORT=28015
volumes:
- ./data/worker1:/var/squirrel/data
- ./yaml:/var/squirrel/yaml
- ./spring-config:/var/squirrel/spring-config
command: java -cp squirrel.jar org.aksw.simba.squirrel.components.WorkerComponentStarter
worker2:
image: squirrel: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/context-sparqlStoreBased.xml
- SPARQL_HOST_NAME=sparqlhost
- SPARQL_HOST_PORT=3030
- DEDUPLICATION_ACTIVE=true
- RDB_HOST_NAME=rethinkdb
- RDB_PORT=28015
volumes:
- ./data/worker2:/var/squirrel/data
- ./yaml:/var/squirrel/yaml
- ./spring-config:/var/squirrel/spring-config
command: java -cp squirrel.jar org.aksw.simba.squirrel.components.WorkerComponentStarter
worker3:
image: squirrel: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/context-sparqlStoreBased.xml
- SPARQL_HOST_NAME=sparqlhost
- SPARQL_HOST_PORT=3030
- DEDUPLICATION_ACTIVE=true
- RDB_HOST_NAME=rethinkdb
- RDB_PORT=28015
volumes:
- ./data/worker3:/var/squirrel/data
- ./yaml:/var/squirrel/yaml
- ./spring-config:/var/squirrel/spring-config
command: java -cp squirrel.jar org.aksw.simba.squirrel.components.WorkerComponentStarter
deduplicator:
image: squirrel
container_name: deduplicator
environment:
DEDUPLICATION_ACTIVE: "true"
HOBBIT_RABBIT_HOST: rabbit
OUTPUT_FOLDER: /var/squirrel/data
RDB_HOST_NAME: rethinkdb
RDB_PORT: 28015
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.aksw.simba.squirrel.components.DeduplicatorComponent