Skip to content

Commit 17c9e71

Browse files
authored
added additional FAQ (#76)
1 parent 23e8275 commit 17c9e71

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,17 @@ A: yes. This is for testing only!!! Reduce the KAFKA_LOG_SEGMENT_BYTES to 16MB a
174174
KAFKA_LOG_SEGMENT_BYTES: 16777216
175175
KAFKA_LOG_RETENTION_BYTES: 134217728
176176
```
177+
178+
**Q: How do I expose kafka?**
179+
180+
A: Incase you want to expose kafka , you must set ```KAFKA_ADVERTISED_LISTENERS``` to the IP of the machine so that kafka is externally accessible. To achieve this you can set ```LISTENER_DOCKER_EXTERNAL``` to the IP of the machine.
181+
Say IP is ```50.10.2.3```, follow the sample mapping below:
182+
183+
```
184+
kafka1:
185+
image: confluentinc/cp-kafka:5.5.1
186+
...
187+
environment:
188+
...
189+
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka2:19093,LISTENER_DOCKER_EXTERNAL://50.10.2.3:9093
190+
```

0 commit comments

Comments
 (0)