24 Star 116 Fork 46

Koma / docker-kafka

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

[docker-kafka] is being sponsored by the following tool; please help to support us by taking a look and signing up to a free trial GitAds

项目说明

一站式Kafka环境部署,可用于本地开发环境或者测试环境,如果用于生产环境,请先确保服务器安全。

特性

  • 支持通过修改 docker-compose.yml 文件中 kafka 的环境变量 KAFKA_VERSION, SCALA_VERSION 来自定义 Kafka 版本
  • Kafka Server 启动配置放置在容器外部 conf/kafka-server.properties 文件中,可完全自定义配置(需要重新执行 build)
  • Kafka 安装目录可以通过修改 docker-compose.yml 文件中 kafka 的环境变量 KAFKA_INSTALL_PATH 来设置,同时在内部创建了一个 /opt/kafka 的软连接来帮助快速定位 kafka 目录
  • 独立 zookeeper 组件,不仅可为 Kafka 服务,同时也可作为其它服务的 zk 组件
  • 集成最新版 KafkaManager,且支持通过修改 docker-compose.yml 文件中 kafka-manager 的环境变量设置是否开启 KafkaManager 认证,以及设置认证用户信息

使用手册

  • build kafka image
docker-compose build --force-rm --no-cache

该命令通常情况下只需要执行一次,但是如果你之前已经 build 过,然后你想重新 build 或者修改了 kafka 的配置之后要重新执行 build,都可以直接使用该命令执行 build.

  • 启动服务
docker-compose up --force-recreate -d
  • 停止服务
docker-compose rm -svf
  • 访问KafkaManager
http://localhost:9000

最后

欢迎提PR,不定时更新

The MIT License (MIT) Copyright (c) 2017 Koma Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

快速部署Kafka,适用于本地开发测试环境 展开 收起
Docker 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Docker
1
https://gitee.com/koma/docker-kafka.git
git@gitee.com:koma/docker-kafka.git
koma
docker-kafka
docker-kafka
master

搜索帮助