From: Kai Moritz Date: Sat, 18 Feb 2023 17:39:14 +0000 (+0100) Subject: TMP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=b1aae210197cd57fc702a11b27d9155243fafb99;p=demos%2Fkafka%2Fmonitoring TMP --- diff --git a/docker-compose.yml b/docker-compose.yml index da8fb95..9eea469 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,16 +1,24 @@ -version: '2' +version: '3' services: zookeeper: - image: bitnami/zookeeper - environment: - - 'ALLOW_ANONYMOUS_LOGIN=yes' + image: bitnami/zookeeper:latest + ports: + - "2181:2181" + kafka: - image: bitnami/kafka:3.4.0 + image: bitnami/kafka:latest + depends_on: + - zookeeper + ports: + - "9092:9092" environment: - - KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 - - ALLOW_PLAINTEXT_LISTENER=yes - exporter: - image: bitnami/kafka-exporter + KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181 + ALLOW_PLAINTEXT_LISTENER: "yes" + + kafka_exporter: + image: danielqsj/kafka-exporter ports: - "9308:9308" + environment: + KAFKA_SERVER: kafka:9092