Skip to content

monstrenyatko/docker-rpi-mosquitto-auth

 
 

Repository files navigation

Mosquitto MQTT server Docker image for Raspberry Pi

Build Status

About

Mosquitto MQTT server in the Docker container with Authentication plugin.

Upstream Links

Authentication plugin

It has the mosquitto-auth-plug to enable authentication.

List of the supported/compiled authentication back-ends:

  • MySQL
  • Redis
  • HTTP
  • JWT
  • MongoDB
  • Files

See mosquitto-auth-plug for configuration details.

Quick Start

  • Pull prebuilt Docker image:

     	docker pull monstrenyatko/rpi-mosquitto-auth
  • Create Data storage:

     	MQTT_DATA="mosquitto-data"
     	docker volume create --name $MQTT_DATA
  • Prepare Configuration directory:

    • Create the /etc/config/mosquitto/conf.d/ directory
    • [OPTIONAL] Add auth-plugin.conf with required settings to the conf.d
    • [OPTIONAL] Add all .conf files with additional Mosquitto configuration to the conf.d
  • Start pre built image:

     	docker-compose up -d
  • Stop/Restart:

     	docker-compose stop
     	docker-compose start

Container is already configured for automatic restart (See docker-compose.yml).

Build own image

		cd <path to sources>
		./build.sh <tag name>

About

Recipe to build the Mosquitto MQTT server Docker image with authentication for on Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%