58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
version: "2"
|
|
|
|
services:
|
|
zookeeper:
|
|
image: docker.io/bitnami/zookeeper:3.8
|
|
ports:
|
|
- "2181"
|
|
environment:
|
|
- ALLOW_ANONYMOUS_LOGIN=yes
|
|
volumes:
|
|
- zookeeper_data:/bitnami/zookeeper
|
|
kafka-0:
|
|
image: docker.io/bitnami/kafka:3.2
|
|
ports:
|
|
- "9092"
|
|
environment:
|
|
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
|
|
- KAFKA_CFG_BROKER_ID=0
|
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
|
volumes:
|
|
- kafka_0_data:/bitnami/kafka
|
|
depends_on:
|
|
- zookeeper
|
|
kafka-1:
|
|
image: docker.io/bitnami/kafka:3.2
|
|
ports:
|
|
- "9092"
|
|
environment:
|
|
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
|
|
- KAFKA_CFG_BROKER_ID=1
|
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
|
volumes:
|
|
- kafka_1_data:/bitnami/kafka
|
|
depends_on:
|
|
- zookeeper
|
|
kafka-2:
|
|
image: docker.io/bitnami/kafka:3.2
|
|
ports:
|
|
- "9092"
|
|
environment:
|
|
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
|
|
- KAFKA_CFG_BROKER_ID=2
|
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
|
volumes:
|
|
- kafka_2_data:/bitnami/kafka
|
|
depends_on:
|
|
- zookeeper
|
|
|
|
volumes:
|
|
zookeeper_data:
|
|
driver: local
|
|
kafka_0_data:
|
|
driver: local
|
|
kafka_1_data:
|
|
driver: local
|
|
kafka_2_data:
|
|
driver: local
|