docker-compose部署kafka-ui部署以及使用

1.docker-compose配置脚本

version: "3"

services: 
  kafka-ui:
    image: provectuslabs/kafka-ui:v0.7.2
    container_name: kafka-ui
    hostname: kafka-ui
    privileged: true
    restart: always
    environment:
      - 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.yaml
    ports:
      - "58080:8080"
    deploy:
      resources:
        limits:
          cpus: '1'
          memory: 2G
        reservations:
          cpus: '0.5'

2.访问UI页面  http://192.168.0.123:58080/

新增kafka集群(或单节点)

 

 

 

 3.提交配置后,访问kafka数据即可

 

 

posted @ 2024-07-22 11:23  水木神舟10  阅读(349)  评论(0编辑  收藏  举报