From e95bfd835e4d8e1094e4f0a3458f9b4e16ca898e Mon Sep 17 00:00:00 2001 From: Ryan <1042107393@qq.com> Date: Mon, 26 Apr 2021 11:26:40 +0800 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 6c15b9a4..f0d828ce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1950,3 +1950,30 @@ services: volumes: - ./react:/usr/src/app/react - /usr/src/app/react/node_modules + +### kafka #################################################### + kafka: + image: wurstmeister/kafka + ports: + - "9092:9092" + environment: + KAFKA_BROKER_ID: 1 + KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1 + KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092 + KAFKA_MESSAGE_MAX_BYTES: 2000000 + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + volumes: + - ${DATA_PATH_HOST}/kafka:/kafka + - /var/run/docker.sock:/var/run/docker.sock + networks: + - backend + +### kafka-manager ########################################### + kafka-manager: + image: sheepkiller/kafka-manager + ports: + - 9020:9000 + environment: + ZK_HOSTS: zookeeper:2181 + networks: + - backend