-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (44 loc) · 978 Bytes
/
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
version: '2'
services:
producer:
build: ./producer
image: producer
depends_on:
- kafka
- mongodb
volumes:
- ./config.properties:/usr/local/config.properties
- ./certificates:/usr/local/certificates
ports:
- "8080:8080"
analyzer:
build: ./analyzer
image: analyzer
depends_on:
- kafka
- mongodb
environment:
- PYTHONUNBUFFERED=0
volumes:
- ./config.properties:/config.properties
- ./certificates:/certificates
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "tweets:1:1,test-tweets:1:1"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
mongodb:
build: ./mongodb
ports:
- "27017:27017"