1 Star 0 Fork 35

深蓝/docker-compose

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose-kafka.yml 997 Bytes
一键复制 编辑 原始数据 按行查看 历史
huangchengkang 提交于 2019-10-31 10:28 . update docker-compose
version: '3'
services:
# ref: https://hub.docker.com/r/wurstmeister/kafka
zookeeper:
image: zookeeper:3.4.11
restart: always
hostname: zookeeper
container_name: zookeeper
ports:
- 2181:2181
volumes:
- /data/docker_file/zookeeper/data:/data
- /data/docker_file/zookeeper/datalog:/datalog
kafka:
image: wurstmeister/kafka
container_name: kafka
hostname: kafka
restart: always
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 192.169.3.201
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_MESSAGE_MAX_BYTES: 2000000
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'
KAFKA_CREATE_TOPICS: "Topic1:1:3,Topic2:1:1:compact"
volumes:
- /data/docker_file/kafka/logs:/kafka
- /var/run/docker.sock:/var/run/docker.sock
kafka-manager:
image: sheepkiller/kafka-manager
ports:
- 9020:9000
environment:
ZK_HOSTS: zookeeper:2181
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/skywyj/docker-compose.git
[email protected]:skywyj/docker-compose.git
skywyj
docker-compose
docker-compose
master

搜索帮助