Expose port for localhost kafka listener

This enables clients outside of docker network to connect,
to test this you can use a tool like kafkacat (kcat).

For example run on the docker compose host machine:

> kafkacat -b localhost:29092 -L
This commit is contained in:
Philipp Theyssen 2023-02-16 14:40:12 +01:00
parent 4b537d2aad
commit b21d1ae193

View File

@ -57,6 +57,7 @@ services:
# To learn about configuring Kafka for access across networks see # To learn about configuring Kafka for access across networks see
# https://www.confluent.io/blog/kafka-client-cannot-connect-to-broker-on-aws-on-docker-etc/ # https://www.confluent.io/blog/kafka-client-cannot-connect-to-broker-on-aws-on-docker-etc/
- "9092:9092" - "9092:9092"
- "29092:29092"
identity-api: identity-api:
environment: environment: