79479185

Date: 2025-03-02 13:52:34
Score: 0.5
Natty:
Report link

In spring application properties localhost refers to application's container, which need to point to the kafka container:

spring:
  kafka:
    consumer:
      bootstrap-servers: kafka:9092
    ...
    producer:
      bootstrap-servers: kafka:9092

I usually prefer confluent's Kafka docker-compose, though.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Deepak D