1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

update kafka

This commit is contained in:
kev 2019-06-20 19:12:25 +08:00
parent ec8af301d8
commit 650168ece0

View File

@ -1,5 +1,5 @@
kafka:
image: wurstmeister/kafka
image: wurstmeister/kafka:2.12-2.2.1
ports:
- "9092:9092"
- "9999:9999"
@ -8,9 +8,9 @@ kafka:
- /data/kafka:/kafka
- /var/run/docker.sock:/var/run/docker.sock
environment:
- KAFKA_ADVERTISED_HOST_NAME=kafka1
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_BROKER_ID=1
- KAFKA_LISTENERS=PLAINTEXT://:9092
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka1:9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181
- KAFKA_JMX_OPTS=-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false