增加kafka-ui

This commit is contained in:
三丙
2025-06-12 17:29:40 +08:00
parent 0be0fe1a35
commit 225c7ffaf1
2 changed files with 19 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ networks:
services:
zookeeper:
container_name: zookeeper
image: registry.cn-hangzhou.aliyuncs.com/sanbing/zookeeper:3.9
restart: always
networks:
@@ -25,6 +26,7 @@ services:
environment:
ALLOW_ANONYMOUS_LOGIN: true
kafka:
container_name: kafka
image: registry.cn-hangzhou.aliyuncs.com/sanbing/kafka:3.7.1
restart: always
depends_on:
@@ -36,6 +38,7 @@ services:
env_file:
- kafka.env
kafka-exporter:
container_name: kafka-exporter
image: registry.cn-hangzhou.aliyuncs.com/sanbing/kafka-exporter:latest
restart: always
depends_on:
@@ -46,3 +49,18 @@ services:
- "9308:9308"
command:
- '--kafka.server=kafka:9092'
kafka-ui:
container_name: kafka-ui
image: registry.cn-hangzhou.aliyuncs.com/sanbing/kafka-ui:v0.7.2
restart: always
depends_on:
- kafka
networks:
- sanbing-network
ports:
- "9098:8080"
environment:
DYNAMIC_CONFIG_ENABLED: 'true'
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092

View File

@@ -19,6 +19,7 @@ networks:
services:
postgres:
container_name: postgresql
image: registry.cn-hangzhou.aliyuncs.com/sanbing/postgresql:17
restart: always
networks: