kafkadockercompose
version: "2"services:
zookeeper:
container_name: zookeeper
ports:
- "2181:2181"
restart: always
image: zookeeper
kafka:
container_name: kafka
ports:
- "9092:9092"
environment:
- KAFKA_BROKER_ID=0
- "KAFKA_ZOOKEEPER_CONNECT=192.168.1.31:2181"
- "KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://192.168.1.31:9092"
- "KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092"
restart: always
image: wurstmeister/kafka
kafka-manager:
container_name: kafka-manager
ports:
- "19000:9000"
environment:
- ZK_HOSTS=192.168.1.31:2181
restart: always
image: kafkamanager/kafka-manager
以上是 kafkadockercompose 的全部内容, 来源链接: utcz.com/z/516279.html