diff --git a/docker-compose.yaml b/docker-compose.yaml index bb824e478..606c207d7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -69,12 +69,15 @@ services: image: wurstmeister/kafka container_name: kafka restart: always + ports: + - 9093:9093 environment: TZ: Asia/Shanghai KAFKA_BROKER_ID: 0 KAFKA_ZOOKEEPER_CONNECT: 127.0.0.1:2181 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" depends_on: - zookeeper