Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example installation setup: replaced zookeeper with kraft #7609

Merged
merged 2 commits into from
Mar 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 6 additions & 19 deletions examples/installation/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,30 +127,17 @@ services:

### KAFKA-related services:

zookeeper:
image: bitnami/zookeeper:3.9
restart: unless-stopped
environment:
ALLOW_ANONYMOUS_LOGIN: "yes"
ZOO_4LW_COMMANDS_WHITELIST: "ruok"
healthcheck:
test: [ "CMD-SHELL", 'echo "ruok" | nc -w 2 -q 2 localhost 2181 | grep imok' ]
interval: 5s
retries: 5
deploy:
resources:
limits:
memory: 256M

kafka:
image: bitnami/kafka:3.7.0
restart: unless-stopped
hostname: nu-kafka
environment:
KAFKA_CFG_ZOOKEEPER_CONNECT: "zookeeper:2181"
depends_on:
zookeeper:
condition: service_healthy
KAFKA_CFG_NODE_ID: 0
KAFKA_CFG_PROCESS_ROLES: controller,broker
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka:9093
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
healthcheck:
test: [ "CMD-SHELL", "kafka-topics.sh --bootstrap-server localhost:9092 --list" ]
interval: 10s
Expand Down
Loading