-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
127 lines (116 loc) · 3.75 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
version: "2"
services:
#debugger:
# image: sjourdan/toolbox
# container_name: debugger
# networks:
# - squirrel:latest
# dns: 8.8.8.8
# command: nc -l 50070
frontier:
image: dicegroup/squirrel.frontier:latest
container_name: frontier
environment:
- HOBBIT_RABBIT_HOST=rabbit
- URI_WHITELIST_FILE=/var/squirrel/whitelist.txt
- FRONTIER_CONTEXT_CONFIG_FILE=/var/squirrel/spring-config/frontier-context.xml
- SEED_FILE=/var/squirrel/seeds.csv
- MDB_HOST_NAME=mongodb
- MDB_PORT=27017
- MDB_CONNECTION_TIME_OUT=5000
- MDB_SOCKET_TIME_OUT=10000
- MDB_SERVER_TIME_OUT=10000
- QUEUE_FILTER_PERSIST=true
- COMMUNICATION_WITH_WEBSERVICE=false
- VISUALIZATION_OF_CRAWLED_GRAPH=false
- JVM_ARGS=-Xmx8g
volumes:
- ./data/frontier:/var/squirrel/data
- ./seed/seeds.csv:/var/squirrel/seeds.csv:ro
- ./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
mongodb:
image: mongo:4.0.0
volumes:
- ./data/mongodb:/data
ports:
- "27017:27017"
# 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: dicegroup/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.xml
- DEDUPLICATION_ACTIVE=false
- JVM_ARGS=-Xmx8g
- STORE_METADATA=true
volumes:
- ./data/worker1:/var/squirrel/data
- ./yaml:/var/squirrel/yaml
- ./spring-config:/var/squirrel/spring-config
worker2:
image: dicegroup/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.xml
- DEDUPLICATION_ACTIVE=false
- MDB_HOST_NAME=mongodb
- MDB_PORT=27017
- JVM_ARGS=-Xmx8g
- STORE_METADATA=true
volumes:
- ./data/worker2:/var/squirrel/data
- ./yaml:/var/squirrel/yaml
- ./spring-config:/var/squirrel/spring-config
worker3:
image: dicegroup/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.xml
- DEDUPLICATION_ACTIVE=true
- JVM_ARGS=-Xmx8g
- STORE_METADATA=true
volumes:
- ./data/worker3:/var/squirrel/data
- ./yaml:/var/squirrel/yaml
- ./spring-config:/var/squirrel/spring-config
# 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.aksw.simba.squirrel.components.DeduplicatorComponent