-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56e5650
commit 6bca2cc
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
# network config for KRaft | ||
docker network create app-tier --driver bridge | ||
# Kafka with KRaft | ||
docker run -d --name kafka-server \ | ||
--hostname kafka-server \ | ||
--network app-tier \ | ||
-e KAFKA_CFG_NODE_ID=0 \ | ||
-e KAFKA_CFG_PROCESS_ROLES=controller,broker \ | ||
-e KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093 \ | ||
-e KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT \ | ||
-e KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka-server:9093 \ | ||
-e KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER \ | ||
bitnami/kafka:latest |