1.docker-compose配置脚本
version: "3"services: kafka-ui:image: provectuslabs/kafka-ui:v0.7.2container_name: kafka-uihostname: kafka-uiprivileged: truerestart: alwaysenvironment:- DYNAMIC_CONFIG_ENABLED=true- AUTH_TYPE=LOGIN_FORM- SPRING_SECURITY_USER_NAME=zdww- SPRING_SECURITY_USER_PASSWORD=meiyoumima#volumes:# - ~/conf/config.yml:/etc/kafkaui/dynamic_config.yamlports:- "58080:8080"deploy:resources:limits:cpus: '1'memory: 2Greservations:cpus: '0.5'
2.访问UI页面 http://192.168.0.123:58080/
新增kafka集群(或单节点)
3.提交配置后,访问kafka数据即可