-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
45 lines (45 loc) · 1.46 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
version: '2.2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.2.1
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka-1:
image: confluentinc/cp-kafka:5.2.1
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper
KAFKA_ADVERTISED_LISTENERS: HOST://127.0.0.1:9092,DOCKER://kafka-1:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: HOST:PLAINTEXT,DOCKER:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
ports:
- 127.0.0.1:9092:9092
kafka-2:
image: confluentinc/cp-kafka:5.2.1
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 2
KAFKA_ZOOKEEPER_CONNECT: zookeeper
KAFKA_ADVERTISED_LISTENERS: HOST://127.0.0.1:9093,DOCKER://kafka-2:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: HOST:PLAINTEXT,DOCKER:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
ports:
- 127.0.0.1:9093:9093
kafka-3:
image: confluentinc/cp-kafka:5.2.1
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 3
KAFKA_ZOOKEEPER_CONNECT: zookeeper
KAFKA_ADVERTISED_LISTENERS: HOST://127.0.0.1:9094,DOCKER://kafka-3:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: HOST:PLAINTEXT,DOCKER:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
ports:
- 127.0.0.1:9094:9094