Created
October 7, 2025 18:52
-
-
Save Silent-Watcher/5507978f307b5b231adfaf6e250b24be to your computer and use it in GitHub Desktop.
Kafka docker local service
This file contains hidden or 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
| version: "3.8" | |
| services: | |
| kafka: | |
| image: apache/kafka:4.0.1-rc2 | |
| container_name: kafka | |
| ports: | |
| - "9092:9092" | |
| environment: | |
| CLUSTER_ID: mkqv8X5vRla7PzR8bKqfHk | |
| KAFKA_NODE_ID: 1 | |
| KAFKA_PROCESS_ROLES: broker,controller | |
| KAFKA_CONTROLLER_QUORUM_VOTERS: 1@kafka:9093 | |
| KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | |
| KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093 | |
| KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092 | |
| KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER | |
| KAFKA_LOG_DIRS: /tmp/kraft-combined-logs | |
| volumes: | |
| - kafka_kraft:/var/lib/kafka/data | |
| volumes: | |
| kafka_kraft: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment