From 84141c8e96356e3b486bf6469ca4cdbdf4279fb2 Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 1 Mar 2023 16:33:17 +0800 Subject: [PATCH] add kafka-ui --- README.md | 1 + kafka-ui/README.md | 2 ++ kafka-ui/docker-compose.yml | 31 +++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 kafka-ui/README.md create mode 100644 kafka-ui/docker-compose.yml diff --git a/README.md b/README.md index c7afc10..d847378 100644 --- a/README.md +++ b/README.md @@ -367,6 +367,7 @@ A collection of delicious docker recipes. - [x] djmattyg007/jsoneditor - [x] wurstmeister/kafka - [x] mailgun/kafka-pixy +- [x] provectuslabs/kafka-ui - [x] devopsfaith/krakend - [x] ipfs/kubo - [x] heartexlabs/label-studio diff --git a/kafka-ui/README.md b/kafka-ui/README.md new file mode 100644 index 0000000..32a1fd2 --- /dev/null +++ b/kafka-ui/README.md @@ -0,0 +1,2 @@ +kafka-ui +======== diff --git a/kafka-ui/docker-compose.yml b/kafka-ui/docker-compose.yml new file mode 100644 index 0000000..246f2b2 --- /dev/null +++ b/kafka-ui/docker-compose.yml @@ -0,0 +1,31 @@ +version: "3.8" + +services: + + kafka: + image: bitnami/kafka:3.4 + ports: + - "9092:9092" + volumes: + - ./data:/bitnami/kafka + environment: + - KAFKA_BROKER_ID=1 + - KAFKA_ENABLE_KRAFT=yes + - KAFKA_CFG_PROCESS_ROLES=broker,controller + - KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER + - KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093 + - KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT + - KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092 + - KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=1@127.0.0.1:9093 + - ALLOW_PLAINTEXT_LISTENER=yes + restart: unless-stopped + + kafka-ui: + image: provectuslabs/kafka-ui + ports: + - "8080:8080" + environment: + - KAFKA_CLUSTERS_1_NAME=local + - KAFKA_CLUSTERS_1_BOOTSTRAPSERVERS=kafka:9092 + # KAFKA_CLUSTERS_1_READONLY=true + restart: unless-stopped