How to configure Kafka UI with login authentication and external access via domain (Docker + NGINX) #1192
Replies: 1 comment 2 replies
-
Hello, your case should be covered in this docker compose example: https://github.com/kafbat/kafka-ui/blob/main/documentation/compose/nginx-proxy.yaml |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I'm trying to set up Kafka UI (kafbat/kafka-ui:latest) using Docker, and I need help configuring it to:
I’m using three Kafka brokers running in containers (KRaft mode, no Zookeeper), plus Kafka UI, an NGINX reverse proxy, and a Django backend app.
Here’s my docker-compose.yml:
`
services:
kafka-broker-1:
image: apache/kafka:latest
container_name: kafka-broker-1
environment:
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_LISTENERS: CONTROLLER://:9091,PLAINTEXT://:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-broker-1:9092
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@kafka-broker-1:9091,2@kafka-broker-2:9191,3@kafka-broker-3:9291
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 3
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 2
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_NUM_PARTITIONS: 3
ALLOW_PLAINTEXT_LISTENER: "yes"
KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
volumes:
- kafka1_data:/var/lib/kafka/data
restart: unless-stopped
volumes:
kafka1_data:
kafka2_data:
kafka3_data:
`
And my nginx.conf looks like this:
`
events {}
http {
include mime.types;
default_type application/octet-stream;
}
`
My question:
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions