Created
October 18, 2022 03:28
-
-
Save tomaszkubacki/feb435156026d3fe120aecee8984b3e1 to your computer and use it in GitHub Desktop.
Simple Kafka test environment with AKHQ gui ready toconnect from localhost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
zookeeper: | |
image: 'bitnami/zookeeper:latest' | |
restart: always | |
ports: | |
- '2181:2181' | |
environment: | |
- ALLOW_ANONYMOUS_LOGIN=yes | |
kafka: | |
image: 'bitnami/kafka:latest' | |
restart: always | |
depends_on: | |
- "zookeeper" | |
ports: | |
- '9092:9092' | |
environment: | |
- KAFKA_BROKER_ID=1 | |
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 | |
- ALLOW_PLAINTEXT_LISTENER=yes | |
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT | |
- KAFKA_CFG_LISTENERS=CLIENT://:9093,EXTERNAL://:9092 | |
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9093,EXTERNAL://localhost:9092 | |
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT | |
depends_on: | |
- zookeeper | |
akhq: | |
image: tchiotludo/akhq:latest | |
restart: always | |
depends_on: | |
- "kafka" | |
ports: | |
- "8080:8080" | |
environment: | |
AKHQ_CONFIGURATION: | | |
akhq: | |
connections: | |
docker-kafka-server: | |
properties: | |
bootstrap.servers: "kafka:9093" | |
depends_on: | |
- kafka | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment