From 6621e77691e7b35196b5e37f40aebd74b984d8c4 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 27 Jul 2018 00:37:40 +0800 Subject: [PATCH] update kafka --- kafka/docker-compose.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/kafka/docker-compose.yml b/kafka/docker-compose.yml index 07ae074..5ad1481 100644 --- a/kafka/docker-compose.yml +++ b/kafka/docker-compose.yml @@ -3,20 +3,36 @@ zookeeper: ports: - "2181:2181" volumes: - - ./zookeeper/data:/data - - ./zookeeper/datalog:/datalog + - ./data/zookeeper/data:/data + - ./data/zookeeper/datalog:/datalog restart: always kafka: image: wurstmeister/kafka ports: - "9092:9092" + hostname: kafka volumes: - ./data/kafka:/kafka - /var/run/docker.sock:/var/run/docker.sock environment: - - KAFKA_ADVERTISED_HOST_NAME=10.50.254.182 + - KAFKA_ADVERTISED_HOST_NAME=kafka + - KAFKA_ADVERTISED_PORT=9092 - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 links: - zookeeper restart: always + +kafka-manager: + image: vimagick/kafka-manager + ports: + - "9000:9000" + environment: + - ZK_HOSTS=zookeeper:2181 + - KAFKA_MANAGER_AUTH_ENABLED=true + - KAFKA_MANAGER_USERNAME=admin + - KAFKA_MANAGER_PASSWORD=admin + links: + - zookeeper + - kafka + restart: always