Add KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP to kafka README.md about access from outside (#34687)

Update README.md

Signed-off-by: Daniel Huth <4455258+Agreon@users.noreply.github.com>
This commit is contained in:
Daniel Huth
2023-05-25 16:06:17 +02:00
committed by GitHub
parent 3cc43933ae
commit c98b4dd66f

View File

@@ -286,6 +286,7 @@ To do so, add the following environment variables to your docker-compose:
- ALLOW_PLAINTEXT_LISTENER=yes
+ - KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094
+ - KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094
+ - KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
```
And expose the external port: