-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
43 lines (43 loc) · 1.09 KB
/
docker-compose.yaml
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
version: '2'
services:
dsnb:
image: jupyter/datascience-notebook
volumes:
- ./:/home/jovyan/
ports:
- 8888:8888
environment:
- PASSWORD=lilletrille
- GRANT_SUDO=yes
command: "start-notebook.sh \
--NotebookApp.password='sha1:198af844a6f0:9a6eb754d045f2d0894172645c6b9bc97794777f'"
producer:
image: flightsproducer
depends_on:
- kafka
- zookeeper
consumer:
image: flightsconsumer
depends_on:
- kafka
- zookeeper
ports:
- "5000:5000"
zookeeper:
image: wurstmeister/zookeeper:3.4.6
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
expose:
- "9093"
- "9092"
environment:
KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: INSIDE://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "departures,arrivals"