COM-Mosquitto

Last modified by Robert Pele on 2021/08/19 06:47

 

Purpose

This software stack provides the Communication System (COM) service Mosquitto, an MQTT based message broker.

Properties

 Stack-Description  Mosquitto MQTT Communication System (COM)    
 Stack-Image        docker.msg.team/ps/docker-stack-com-mosquitto   
 Stack-Version      2.0.4 
 Stack-Release      20201223 
 Product-Name  Mosquitto 
 Product-Vendor  Roger Light 
 Product-Contact  http://mosquitto.org/ 
 Product-Model  Open Source 
 Product-License  EPL 
 Product-Limits  none 
Implementation Base  Vue, Javascript
Execution Base       JS Engine, Browser 
Initial Start Time   00:00:10
Documentation       https://mosquitto.org/documentation/

Topology

The stack consists of 1 container:

  • com-mosquitto: the application is running on Port 8888

Configuration

Variable Name       Default Meaning  
CFG_ADMIN_USERNAMEadmin  
CFG_ADMIN_PASSWORDadmin  
CFG_CUSTOM_USERNAMEexample  
CFG_CUSTOM_PASSWORDexample  

See also the variables which control integration of the stack into the reverse proxy.
For changes to take effect the stack has to be reinstalled.

First Steps

First of all your VM must support SSL/HTTPS to use Mosquitto. Please check here how to config your VM.

When your install of “Mosquitto MQTT”was successfull, you will get this Startpage, after click on your tile in your server browser window.

image-20210707131222-1.png

Please press "Create Client"

Now you get a new dialog – Connection Settings

1625656514365-214.png

Please enter a client name. 

When your client support SSL/HTTPS you dont get this red allert.

Press "Save"

For further information how to use Mosquitto please check the documentation.

Administration Commands

Command Arguments Function  
docker-stack exec com-mosquitto sub submit a message
docker-stack exec com-mosquitto pub publish a message
docker-stack exec com-mosquitto rr request/response a message at the same time
docker-stack exec com-mosquitto passwdUsername/opt. PasswdEnter an username (optional a passwd). If you dont enter a passwd you will get a dialog and then you have to enter a passwd
 

This command can be used to add additional users to node-red. If the password is missing it is asked interactively. Use "-" to delete the user.

Related Documents

 

Tags:
Created by Robert Pele on 2021/03/17 10:50

Navigation