2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-28 07:56:32 +01:00

add cp-kafka-mqtt

This commit is contained in:
kev
2019-05-02 07:11:16 +08:00
parent d44d930724
commit fb57740c81
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
kafka-mqtt:
image: confluentinc/cp-kafka-mqtt
ports:
- "1883:1883"
environment:
- KAFKA_MQTT_BOOTSTRAP_SERVERS=kafka1:9092,kafka2:9092,kafka3:9092
- KAFKA_MQTT_TOPIC_REGEX_LIST=temperature:.*
extra_hosts:
- kafka1:10.0.0.21
- kafka2:10.0.0.22
- kafka3:10.0.0.23
restart: unless-stopped