Skip to content

Commit

Permalink
fix docker-compose kafka-ui config
Browse files Browse the repository at this point in the history
  • Loading branch information
PBobylev committed Nov 27, 2023
1 parent 28e27ed commit 1ace91a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,30 @@ services:
zookeeper:
image: confluentinc/cp-zookeeper:7.3.2
container_name: zookeeper
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka:
image: confluentinc/cp-kafka:7.3.2
container_name: kafka
hostname: kafka
ports:
- "9092:9092"
- "9997:9997"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092,PLAINTEXT_INTERNAL://broker:29092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_JMX_PORT: 9997
kafka-ui:
container_name: kafka-ui
image: provectuslabs/kafka-ui:latest
Expand All @@ -46,6 +52,7 @@ services:
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181
KAFKA_CLUSTERS_0_JMXPORT: 9997
DYNAMIC_CONFIG_ENABLED: 'true'
volumes:
db:
driver: local

0 comments on commit 1ace91a

Please sign in to comment.