diff --git a/mosquitto/data/config/mosquitto.conf b/mosquitto/data/config/mosquitto.conf new file mode 100644 index 0000000000..8b85be44f8 --- /dev/null +++ b/mosquitto/data/config/mosquitto.conf @@ -0,0 +1,19 @@ +# Config file for mosquitto +# See mosquitto.conf(5) for more information. + +# default listener +listener 1883 + +# websockets listener (including webserver) +listener 9001 +protocol websockets +http_dir /mosquitto/www + +# security +allow_anonymous true +#password_file +#acl_file + +# Path to the PEM encoded server/keyfile certificate. +#certfile +#keyfile diff --git a/mosquitto/data/log/.gitkeep b/mosquitto/data/log/.gitkeep new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/mosquitto/data/log/.gitkeep @@ -0,0 +1 @@ + diff --git a/mosquitto/data/mosquitto/.gitkeep b/mosquitto/data/mosquitto/.gitkeep new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/mosquitto/data/mosquitto/.gitkeep @@ -0,0 +1 @@ + diff --git a/mosquitto/data/www/favicon.png b/mosquitto/data/www/favicon.png new file mode 100644 index 0000000000..fb71282f1c Binary files /dev/null and b/mosquitto/data/www/favicon.png differ diff --git a/mosquitto/data/www/index.html b/mosquitto/data/www/index.html new file mode 100644 index 0000000000..e3abca3772 --- /dev/null +++ b/mosquitto/data/www/index.html @@ -0,0 +1,308 @@ + + + Mosquitto + + + + + + +
+
+ +
+ ● Running +

Eclipse Mosquitto

+
+
+

+
+

How to Connect to the MQTT-Broker

+

Follow these steps to connect to the MQTT-Broker:

+ +

MQTTX Web (Webbased)

+
    +
  1. Install MQTTX Web from the Umbrel Appstore.
  2. +
  3. use umbrel.local as server address.
  4. +
  5. use Port 9021 as server port.
  6. +
  7. Click connect and you should now be able to subscribe/publish to the topics you like.
  8. +
+ +

MQTT Explorer (Windows)

+
    +
  1. Install MQTT Explorer from mqtt-explorer.com.
  2. +
  3. use umbrel.local as server address.
  4. +
  5. use Port 1883 as server port.
  6. +
  7. Click connect and you should now be able to subscribe/publish to the topics you like.
  8. +
+ +

Use the access information above to configure devices and services to access the MQTT-Broker.

+
+

🚨 Heads up 🚨

+

If you plan to expose your MQTT-Broker to the internet you are strongly advised to configure authentification.

+

Change the configuration by following these steps to modify the mosquitto.conf manualy:

+ +
+ + + diff --git a/mosquitto/data/www/logo.png b/mosquitto/data/www/logo.png new file mode 100644 index 0000000000..dc4b1c0bba Binary files /dev/null and b/mosquitto/data/www/logo.png differ diff --git a/mosquitto/docker-compose.yml b/mosquitto/docker-compose.yml new file mode 100644 index 0000000000..2c24320eed --- /dev/null +++ b/mosquitto/docker-compose.yml @@ -0,0 +1,18 @@ +services: + + app_proxy: + environment: + APP_HOST: mosquitto_broker_1 + APP_PORT: 9001 + + broker: + image: eclipse-mosquitto:2.0.20@sha256:8b396cec28cd5e8e1a3aba1d9abdbddd42c454c80f703e77c1bec56e152fa54e + restart: on-failure + ports: + - '1883:1883' + volumes: + - ${APP_DATA_DIR}/data/config:/mosquitto/config:rw + - ${APP_DATA_DIR}/data/mosquitto:/mosquitto/data:rw + - ${APP_DATA_DIR}/data/log:/mosquitto/log:rw + - ${APP_DATA_DIR}/data/www:/mosquitto/www:r + user: "1000:1000" diff --git a/mosquitto/umbrel-app.yml b/mosquitto/umbrel-app.yml new file mode 100644 index 0000000000..62c347103e --- /dev/null +++ b/mosquitto/umbrel-app.yml @@ -0,0 +1,29 @@ +manifestVersion: 1 +id: mosquitto +name: Mosquitto +tagline: An open source MQTT broker +category: automation +version: "2.0.20" +port: 9021 +description: >- + Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. Mosquitto is lightweight and is suitable for use on all devices from low power single board computers to full servers. + + + The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers. + + + The Mosquitto project also provides a C library for implementing MQTT clients, and the very popular mosquitto_pub and mosquitto_sub command line MQTT clients. +developer: Eclipse Foundation +website: https://mosquitto.org/ +submitter: dirstel +submission: https://github.com/getumbrel/umbrel-apps/pull/1789 +repo: https://github.com/eclipse-mosquitto/mosquitto +support: https://github.com/eclipse-mosquitto/mosquitto +gallery: + - 1.jpg + - 2.jpg + - 3.jpg +releaseNotes: "" +dependencies: [] +path: "" +defaultUsername: "" \ No newline at end of file