Created
May 17, 2022 19:47
-
-
Save SamoraMachel/afcc95f652f8f0a2b21cfd458171b40a to your computer and use it in GitHub Desktop.
A docker compose for full kafka configuration with kafka manager included
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.6' | |
services: | |
zookeeper: | |
image: wurstmeister/zookeeper | |
restart: always | |
container_name: zookeeper | |
hostname: zookeeper | |
ports: | |
- "2181:2181" | |
kafka: | |
image: wurstmeister/kafka | |
container_name: kafka | |
ports: | |
- "9092:9092" | |
environment: | |
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1 | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | |
depends_on: | |
- zookeeper | |
kafka-manager: | |
image: hlebalbau/kafka-manager:stable | |
container_name: kafka-manager | |
ports: | |
- 9000:9000 | |
environment: | |
ZK_HOSTS: zookeeper:2181 | |
APPLICATION_SECRET: "random-secret" | |
depends_on: | |
- kafka | |
command: -Dpidfile.path=/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment