forked from istresearch/scrapy-cluster
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
86 lines (85 loc) · 1.86 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
version: '2'
services:
kafka_monitor:
# image: istresearch/scrapy-cluster:kafka-monitor-1.2.1
build:
context: ./
dockerfile: ./docker/kafka-monitor/Dockerfile
depends_on:
- kafka
- redis
restart: always
volumes:
- /vol_b/data/scrapy_cluster_data:/var/lib/crawl_dump
kafka_dump:
# image: istresearch/scrapy-cluster:kafka-monitor-1.2.1
build:
context: ./
dockerfile: ./docker/kafka-monitor/Dockerfile_dump
depends_on:
- kafka
- redis
restart: always
volumes:
- /vol_b/data/scrapy_cluster_data:/var/lib/crawl_dump
redis_monitor:
image: istresearch/scrapy-cluster:redis-monitor-1.2.1
depends_on:
- kafka
- redis
- zookeeper
restart: always
crawler:
# image: istresearch/scrapy-cluster:crawler-1.2.1
build:
context: ./
dockerfile: ./docker/crawler/Dockerfile
depends_on:
- kafka
- redis
- zookeeper
restart: always
privileged: true
rest:
image: istresearch/scrapy-cluster:rest-1.2.1
depends_on:
- kafka
- redis
restart: always
ports:
- "5343:5343"
redis:
image: redis
ports:
- "6379"
restart: always
zookeeper:
image: zookeeper
ports:
- "2181:2181"
restart: always
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_ADVERTISED_HOST_NAME: kafka
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
restart: always
# chrome:
# image: selenium/node-chrome:3.9.1-actinium
# volumes:
# - /dev/shm:/dev/shm
# depends_on:
# - hub
# environment:
# HUB_HOST: hub
# hub:
# image: selenium/hub:3.9.1-actinium
# ports:
# - "4444"