|
|
@ -69,12 +69,15 @@ services:
|
|
|
|
image: wurstmeister/kafka
|
|
|
|
image: wurstmeister/kafka
|
|
|
|
container_name: kafka
|
|
|
|
container_name: kafka
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
ports:
|
|
|
|
|
|
|
|
- 9093:9093
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
TZ: Asia/Shanghai
|
|
|
|
TZ: Asia/Shanghai
|
|
|
|
KAFKA_BROKER_ID: 0
|
|
|
|
KAFKA_BROKER_ID: 0
|
|
|
|
KAFKA_ZOOKEEPER_CONNECT: 127.0.0.1:2181
|
|
|
|
KAFKA_ZOOKEEPER_CONNECT: 127.0.0.1:2181
|
|
|
|
KAFKA_ADVERTISED_LISTENERS: INSIDE://127.0.0.1:9092,OUTSIDE://localhost:9093
|
|
|
|
KAFKA_ADVERTISED_LISTENERS: INSIDE://127.0.0.1:9092,OUTSIDE://localhost:9093
|
|
|
|
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
|
|
|
|
KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://:9093
|
|
|
|
|
|
|
|
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT"
|
|
|
|
network_mode: "host"
|
|
|
|
network_mode: "host"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- zookeeper
|
|
|
|