Problem with Kafka and Docker #152808
-
BodyI have a problem when I start containers, this message appears in the log when running service-auth:
As I recently started using Docker and Kafka, I don't know how to solve it, I tried to change the url of I would be grateful if anyone could help me, thank you! Repo: https://github.com/devpedro-dias/e-commerce Guidelines
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
try this.. it uses Kraft approach kafka. @devpedro-dias kafka: |
Beta Was this translation helpful? Give feedback.
try this.. it uses Kraft approach kafka. @devpedro-dias
kafka:
image: apache/kafka:latest
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_LISTENERS: PLAINTEXT://kafka:9092,CONTROLLER://localhost:9093
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:9093
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1