forked from sorjef/data-gov-ua-analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (63 loc) · 1.65 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
version: '2'
services:
proxy:
image: mattes/rotating-proxy
environment:
- tors=25
rethinkdb:
image: 'vanuan/rethinkdb-alpine'
ports:
- 127.0.0.1:8080:8080
- 172.17.0.1:28015:28015
volumes:
- ./data/rethinkdb:/data
crawler:
build: ./app/build
volumes:
- ./app:/src
- ./data:/data
- ./tmp_yarn_cache:/usr/local/share/.cache/yarn
working_dir: /src
command: sh -c 'yarn install && node crawlInitial'
depends_on:
- proxy
- rethinkdb
environment:
- PROXY_URL=http://proxy:5566
- DELAY=1000
- CONCURRENCY=1
- NODE_ENV=$NODE_ENV
- ONLY_NODES=4453,6218
ports:
- "127.0.0.1:9229:9229"
- "127.0.0.1:9222:9222"
expose:
- "9229"
- "9222"
# elasticsearch:
# image: elasticsearch:5.1.1
# ports:
# - "9200:9200"
# volumes:
# - elasticsearch_config:/usr/share/elasticsearch/config
# - elasticsearch_data:/usr/share/elasticsearch/data
# logstash:
# image: logstash:5.1.1
# volumes:
# - ./logstash:/crawler/logstash
# - ./data:/crawler/data
# command: bash -c "env GEM_HOME=/usr/share/logstash/vendor/bundle/jruby/1.9 /usr/share/logstash/vendor/jruby/bin/jruby -S gem install geocoder -v 1.4.1 && echo 'gem \"geocoder\", \"~> 1.4.1\"' >> /usr/share/logstash/Gemfile && logstash -f /crawler/logstash/metadata.conf"
# depends_on:
# - elasticsearch
# kibana:
# image: kibana:5.1.1
# ports:
# - "5601:5601"
# volumes:
# - kibana_config:/etc/kibana/
# depends_on:
# - elasticsearch
#volumes:
# elasticsearch_config: {}
# elasticsearch_data: {}
# kibana_config: {}