-
Notifications
You must be signed in to change notification settings - Fork 324
/
docker-compose.yml
67 lines (66 loc) · 1.47 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
version: '2'
services:
kafka_monitor:
image: istresearch/scrapy-cluster:kafka-monitor-ci-dev
build:
context: .
dockerfile: docker/kafka-monitor/Dockerfile.py3
depends_on:
- kafka
- redis
restart: always
redis_monitor:
image: istresearch/scrapy-cluster:redis-monitor-ci-dev
build:
context: .
dockerfile: docker/redis-monitor/Dockerfile.py3
depends_on:
- kafka
- redis
- zookeeper
restart: always
crawler:
image: istresearch/scrapy-cluster:crawler-ci-dev
build:
context: .
dockerfile: docker/crawler/Dockerfile.py3
depends_on:
- kafka
- redis
- zookeeper
restart: always
rest:
image: istresearch/scrapy-cluster:rest-ci-dev
build:
context: .
dockerfile: docker/rest/Dockerfile.py3
depends_on:
- kafka
- redis
restart: always
ports:
- "5343:5343"
redis:
image: redis
# command: redis-server --requirepass redispassword
ports:
- "6379:6379"
restart: always
zookeeper:
image: wurstmeister/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