-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose-zk.yml
51 lines (48 loc) · 1.25 KB
/
docker-compose-zk.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
version: '3.5'
name: kafka-native-zk
services:
zookeeper:
image: quay.io/ogunalp/zookeeper-native:latest
ports:
- "2181:2181"
networks:
- kafka-network
broker1:
image: quay.io/ogunalp/kafka-native:latest
ports:
- "9095:9092"
environment:
SERVER_CLUSTER_ID: BmMQZPq6Qoua1-yvgGJFbA
SERVER_HOST: broker1
KAFKA_BROKER_ID: 1
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9095
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- kafka-network
broker2:
image: quay.io/ogunalp/kafka-native:latest
ports:
- "9096:9092"
environment:
SERVER_CLUSTER_ID: BmMQZPq6Qoua1-yvgGJFbA
SERVER_HOST: broker2
KAFKA_BROKER_ID: 2
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9096
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- kafka-network
broker3:
image: quay.io/ogunalp/kafka-native:latest
ports:
- "9097:9092"
environment:
SERVER_CLUSTER_ID: BmMQZPq6Qoua1-yvgGJFbA
SERVER_HOST: broker3
KAFKA_BROKER_ID: 3
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9097
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- kafka-network
networks:
kafka-network:
name: kafka-native-zk