forked from GoSecure/freshonions-torscraper
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
101 lines (90 loc) · 2.34 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
#Containers' name can't contain _ (underscore) because scrapy is not able to handle it.
version: '2'
services:
web-interface:
build: web
restart: always
ports:
- "8000:5000"
volumes:
- ./etc:/opt/torscraper/etc:ro
- ./scripts:/opt/torscraper/scripts:ro
- ./lib:/opt/torscraper/lib:ro
depends_on:
- db
- elasticsearch
container_name: "freshonions-torscraper-web-interface"
db:
build: db
# uncomment if you want database to persist
volumes:
- db-data:/var/lib/mysql
container_name: "freshonions-torscraper-db"
crawler:
build: .
restart: always
depends_on:
- db
- elasticsearch
container_name: "freshonions-torscraper-crawler"
elasticsearch:
#image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.0
image: elasticsearch:5.6.10
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data:/usr/share/elasticsearch/data
ports:
- 9201:9200
container_name: "freshonions-torscraper-elasticsearch"
kibana:
#image: docker.elastic.co/kibana/kibana-oss:6.3.0
image: kibana:5.6.10
environment:
SERVER_NAME: kibana
ELASTICSEARCH_URL: http://freshonions-torscraper-elasticsearch:9200
depends_on:
- elasticsearch
ports:
- 5601:5601
container_name: "freshonions-torscraper-kibana"
tor-privoxy:
restart: always
build: tor-privoxy
ports:
- "9050:9050" # Tor proxy
- "3129:8118" # Privoxy
container_name: "freshonions-torscraper-tor-privoxy"
tor-privoxy2:
restart: always
build: tor-privoxy2
ports:
- "9051:9051" # Tor proxy
- "3130:8119" # Privoxy
container_name: "freshonions-torscraper-tor-privoxy2"
tor-privoxy3:
restart: always
build: tor-privoxy3
ports:
- "9052:9052" # Tor proxy
- "3131:8120" # Privoxy
container_name: "freshonions-torscraper-tor-privoxy3"
tor-privoxy4:
restart: always
build: tor-privoxy4
ports:
- "9053:9053" # Tor proxy
- "3132:8121" # Privoxy
container_name: "freshonions-torscraper-tor-privoxy4"
volumes:
es-data:
driver: local
db-data:
driver: local