2023-03-01 10:33:17 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2023-03-01 11:02:02 +02:00
|
|
|
zookeeper:
|
|
|
|
image: bitnami/zookeeper:3.8
|
|
|
|
ports:
|
|
|
|
- "2181:2181"
|
|
|
|
volumes:
|
|
|
|
- ./data/zookeeper:/bitnami/zookeeper
|
|
|
|
environment:
|
|
|
|
- ZOO_SERVER_ID=1
|
|
|
|
- ALLOW_ANONYMOUS_LOGIN=yes
|
|
|
|
restart: unless-stopped
|
|
|
|
|
2023-03-01 10:33:17 +02:00
|
|
|
kafka:
|
|
|
|
image: bitnami/kafka:3.4
|
|
|
|
ports:
|
|
|
|
- "9092:9092"
|
|
|
|
volumes:
|
2023-03-01 11:02:02 +02:00
|
|
|
- ./data/kafka:/bitnami/kafka
|
2023-03-01 10:33:17 +02:00
|
|
|
environment:
|
|
|
|
- KAFKA_BROKER_ID=1
|
2023-03-01 11:02:02 +02:00
|
|
|
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
|
|
|
|
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
|
|
|
|
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
|
2023-03-01 10:33:17 +02:00
|
|
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
2023-03-01 11:02:02 +02:00
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
2023-03-01 10:33:17 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
kafka-ui:
|
|
|
|
image: provectuslabs/kafka-ui
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
environment:
|
2023-03-01 11:02:02 +02:00
|
|
|
- KAFKA_CLUSTERS_0_NAME=local
|
|
|
|
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
|
|
|
|
# KAFKA_CLUSTERS_0_READONLY=true
|
2023-03-01 10:35:14 +02:00
|
|
|
depends_on:
|
|
|
|
- kafka
|
2023-03-01 10:33:17 +02:00
|
|
|
restart: unless-stopped
|