Skip to content

Commit

Permalink
added kafka ui in compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
lkumarjain committed Jan 29, 2024
1 parent 0a25f47 commit cd9127f
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions kafka-client/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,25 @@ services:
zookeeper:
image: wurstmeister/zookeeper
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181

networks:
- internal

broker:
image: wurstmeister/kafka
container_name: broker
hostname: broker
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_ADVERTISED_PORT: "9092"
KAFKA_LISTENERS: "INTERNAL://broker:9090, A://:9092"
KAFKA_ADVERTISED_LISTENERS: "INTERNAL://broker:9090, A://localhost:9092"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL:PLAINTEXT, A:PLAINTEXT"
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
KAFKA_DELETE_TOPIC_ENABLE: 'true'
Expand All @@ -29,5 +35,25 @@ services:
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 60000
KAFKA_CREATE_TOPICS_SEPARATOR: ","
KAFKA_CREATE_TOPICS: "test_input:32:1,test_output:32:1"
restart: always
depends_on:
- zookeeper
networks:
- internal

kafka-ui:
container_name: kafka-ui
image: provectuslabs/kafka-ui:latest
ports:
- 8080:8080
depends_on:
- zookeeper
- broker
environment:
DYNAMIC_CONFIG_ENABLED: 'true'
networks:
- internal

networks:
internal:
driver: bridge

0 comments on commit cd9127f

Please sign in to comment.