# kafka-docker **Repository Path**: glg/kafka-docker ## Basic Information - **Project Name**: kafka-docker - **Description**: 使用docker快速构建kafka - **Primary Language**: Shell - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-04-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 一键启动kafka ###管理端口 ###http://127.0.0.1:9000/ 1、下载docker-compose.yml ~~~ git clone https://gitee.com/glg/kafka-docker.git ~~~ 2、修改docker-compose.yml内网地址 ~~~ ## 修改:宿主机IP KAFKA_ADVERTISED_HOST_NAME: 宿主机IP ZK_HOSTS: 宿主机IP ~~~ 3、运行kafka ~~~ docker-compose up -d ~~~ ### 增加服务 ~~~ docker-compose scale kafka=3 ~~~ 自己测试使用,IP不同请勿使用 ~~~ git clone https://gitee.com/glg/kafka-docker.git && cd kafka-docker && chmod +x ./test.sh && ./test.sh ~~~