-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (52 loc) · 1.01 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
version: "3"
services:
api:
build: ./api
container_name: api
depends_on:
- kafka
- mongodb
ports:
- 8080:8080
crawler:
build: ./crawler
container_name: crawler
depends_on:
- mongodb
- kafka
ports:
- 8081:8081
storage:
build: ./storage
container_name: storage
depends_on:
- mongodb
- kafka
mongodb:
image: mongo
container_name: mongodb
restart: always
volumes:
- ./data/db:/data/db
ports:
- 27017:27017
zookeeper:
image: wurstmeister/zookeeper
container_name: zookeeper
ports:
- 2181:2181
kafka:
image: wurstmeister/kafka:2.11-1.1.1
container_name: kafka
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: 9092
KAFKA_CREATE_TOPICS: "mention:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_BROKER_ID: 1
volumes:
- ./data/kafka:/var/run/docker.sock
depends_on:
- zookeeper
ports:
- 9092