1 Star 0 Fork 0

银灵子/kafka-avro-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
xudacheng 提交于 2019-11-27 17:44 . kafka-demo
version: '2'
services:
kafka1:
image: wurstmeister/kafka:2.12-2.3.0
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
KAFKA_LOG_DIRS: /kafka
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://192.168.11.7:9092
KAFKA_LISTENERS: PLAINTEXT://:9092
kafka2:
image: wurstmeister/kafka:2.12-2.3.0
depends_on:
- zookeeper
ports:
- "9093:9092"
environment:
KAFKA_LOG_DIRS: /kafka
KAFKA_BROKER_ID: 2
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://192.168.11.7:9093
KAFKA_LISTENERS: PLAINTEXT://:9092
kafka3:
image: wurstmeister/kafka:2.12-2.3.0
depends_on:
- zookeeper
ports:
- "9094:9092"
environment:
KAFKA_LOG_DIRS: /kafka
KAFKA_BROKER_ID: 3
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://192.168.11.7:9094
KAFKA_LISTENERS: PLAINTEXT://:9092
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dacxu/kafka-avro-demo.git
git@gitee.com:dacxu/kafka-avro-demo.git
dacxu
kafka-avro-demo
kafka-avro-demo
master

搜索帮助