-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
36 lines (36 loc) · 989 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
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
container_name: pipeline_kafka_zookeeper
network_mode: host
ports:
- "2181:2181"
kafka0:
image: wurstmeister/kafka:2.12-2.1.0
container_name: pipeline_kafka_broker0
network_mode: host
environment:
KAFKA_PORT: 9092
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_BROKER_ID: 0
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ZOOKEEPER_CONNECT: localhost:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kafka1:
extends:
service: kafka0
container_name: pipeline_kafka_broker1
ports:
- "8092:9092"
environment:
KAFKA_PORT: 8092
KAFKA_DELETE_TOPIC_ENABLE: "true"
KAFKA_BROKER_ID: 1
KAFKA_ADVERTISED_PORT: 8092
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ZOOKEEPER_CONNECT: localhost:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock