目录
Kafka 集群安装 docker-compose安装
docker-compose.yml
version: "2"
services:
zookeeper:
image: docker.io/bitnami/zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
image: docker.io/bitnami/kafka:3.4
container_name: kafka
ports:
- "9092:9092"
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://192.168.10.26:9092
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
kafka_manager:
image: 'hlebalbau/kafka-manager:latest'
container_name: kafka-manager
ports:
- "39000:9000"
environment:
ZK_HOSTS: "zookeeper:2181"
depends_on:
- zookeeper
- kafka
安装
docker-compose up -d
标签:compose,zookeeper,kafka,2181,docker,安装 From: https://www.cnblogs.com/liwenchao1995/p/17405539.html