-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