Skip to content

Commit

Permalink
chore: fixed KRaft config for newest Kafka (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl authored Sep 1, 2023
1 parent 51ac7b2 commit 84df54e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose/compose.full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ services:
security_opt:
- "no-new-privileges:true"
environment:
KAFKA_CFG_NODE_ID: "0"
KAFKA_RAFT_CLUSTER_ID: "diz-in-a-box"
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: "0@kafka:9093"
KAFKA_CFG_PROCESS_ROLES: "controller,broker"
ALLOW_PLAINTEXT_LISTENER: "yes"
KAFKA_CFG_MESSAGE_MAX_BYTES: "31457280"
KAFKA_CFG_LISTENERS: "PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094"
KAFKA_CFG_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094"
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: "CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT"
KAFKA_CFG_LOG_CLEANUP_POLICY: compact
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: PLAINTEXT
volumes:
- "kafka_data:/bitnami:rw"

Expand Down

0 comments on commit 84df54e

Please sign in to comment.