mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 18:06:36 +02:00
update kafka-ui
This commit is contained in:
parent
3999a20f2f
commit
da30072c47
@ -1,2 +1,13 @@
|
||||
kafka-ui
|
||||
========
|
||||
|
||||
[kafka-ui][1], Open-Source Web UI for Apache Kafka Management.
|
||||
|
||||
```bash
|
||||
$ mkdir -p data/{zookeeper,kafka}
|
||||
$ chmod -R 777 data
|
||||
$ docker-compose up -d
|
||||
$ curl http://127.0.0.1:8080
|
||||
```
|
||||
|
||||
[1]: https://github.com/provectus/kafka-ui
|
||||
|
@ -2,22 +2,31 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
|
||||
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
|
||||
|
||||
kafka:
|
||||
image: bitnami/kafka:3.4
|
||||
ports:
|
||||
- "9092:9092"
|
||||
volumes:
|
||||
- ./data:/bitnami/kafka
|
||||
- ./data/kafka:/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
|
||||
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
|
||||
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
|
||||
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
|
||||
- ALLOW_PLAINTEXT_LISTENER=yes
|
||||
depends_on:
|
||||
- zookeeper
|
||||
restart: unless-stopped
|
||||
|
||||
kafka-ui:
|
||||
@ -25,9 +34,9 @@ services:
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- KAFKA_CLUSTERS_1_NAME=local
|
||||
- KAFKA_CLUSTERS_1_BOOTSTRAPSERVERS=kafka:9092
|
||||
# KAFKA_CLUSTERS_1_READONLY=true
|
||||
- KAFKA_CLUSTERS_0_NAME=local
|
||||
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
|
||||
# KAFKA_CLUSTERS_0_READONLY=true
|
||||
depends_on:
|
||||
- kafka
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user