Remove hostnames from KAFKA_LISTENERS so kafka binds to the correct external interface; see [wurstmeister/kafka-docker#424]
@@ -62,11 +62,10 @@ services:
- "9093:9093"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
- KAFKA_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://localhost:9093
- KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://localhost:9093
+ KAFKA_LISTENERS: INTERNAL://:9092,EXTERNAL://:9093
+ KAFKA_ADVERTISED_LISTENERS: INTERNAL://:9092,EXTERNAL://:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
- LOG4J_LOGGER_ROOTLOGGER: DEBUG
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
