1 Star 0 Fork 35

bocai/docker-compose

forked from kancy/docker-compose 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose-kafka.yml 995 Bytes
一键复制 编辑 原始数据 按行查看 历史
huangchengkang 提交于 2021-08-20 01:25 . 1
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: localhost
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_MESSAGE_MAX_BYTES: 2000000
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bolegecai/docker-compose.git
git@gitee.com:bolegecai/docker-compose.git
bolegecai
docker-compose
docker-compose
master

搜索帮助