luigidemasi opened a new issue, #13:
URL: https://github.com/apache/camel-kit/issues/13

   > Imported from 
[luigidemasi/camel-kit#17](https://github.com/luigidemasi/camel-kit/issues/17), 
opened by [luigidemasi](https://github.com/luigidemasi) on 2026-04-30.
   > Closed by 
[luigidemasi/camel-kit#33](https://github.com/luigidemasi/camel-kit/pull/33), 
merged on 2026-05-02.
   
   ---
   
   ## Description
   
   The Kafka docker-compose template in the skill guide uses 
`KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092`, which only works for 
host-network clients. Containerized Camel applications connecting to Kafka via 
docker-compose networking would fail to connect because `localhost` resolves to 
the container itself, not the Kafka container.
   
   **File:** 
`camel-kit-core/src/main/resources/skills/camel-implement/guides/docker-compose.md:174`
   
   ## Suggestion
   
   Add a dual-listener configuration that supports both host and container 
clients:
   ```yaml
   KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092,PLAINTEXT_HOST://0.0.0.0:29092
   KAFKA_ADVERTISED_LISTENERS: 
PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
   KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 
CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
   ```
   
   ## Context
   
   Flagged by CodeRabbit on PR luigidemasi/camel-kit#12 (comment 
luigidemasi/camel-kit#3160643242).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to