2024-12-27 19:55:21 +00:00
|
|
|
services:
|
|
|
|
broker:
|
|
|
|
image: apache/kafka:latest
|
|
|
|
container_name: broker
|
|
|
|
environment:
|
|
|
|
KAFKA_NODE_ID: 1
|
|
|
|
KAFKA_PROCESS_ROLES: broker,controller
|
2024-12-27 21:00:03 +00:00
|
|
|
KAFKA_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
|
|
|
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092
|
2024-12-27 19:55:21 +00:00
|
|
|
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
|
|
|
|
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
|
2024-12-27 23:10:13 +00:00
|
|
|
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@:9093
|
2024-12-27 19:55:21 +00:00
|
|
|
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
|
|
|
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
|
|
|
|
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
|
|
|
|
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
|
|
|
|
KAFKA_NUM_PARTITIONS: 3
|
2024-12-27 20:19:58 +00:00
|
|
|
ports:
|
|
|
|
- "9092:9092"
|
|
|
|
- "9093:9093"
|