GitXplorerGitXplorer
v

mosquitto-demo

public
10 stars
6 forks
0 issues

Commits

List of commits on branch master.
Unverified
152aa2ecf253b7afca7ba15ba3f20211e715e91a

mkdir src automatically

committed 6 years ago
Unverified
4479d444ce1de2bc994d7e36342f6e2a79e3cc61

add readme

committed 6 years ago
Unverified
d5e4af6252979343b940a09766f33205f81a4ec3

execute configure.sh

committed 6 years ago
Unverified
db6a27a311e6c5cda85284c7a7abe71632bf8b3a

change mosquitto-auth-plug version to 0.1.2

committed 6 years ago
Unverified
a413f50360f1c513961271a10d774bcdf93a1629

delete mosquitto_api

committed 6 years ago
Unverified
e091cd5dd469000810eccc0a8f761610c97d41cb

zip apk command

committed 6 years ago

README

The README file for this repository.

Mosquitto docker-compose demo

This is a demo of mosquitto with mosquitto-auth-plug.

Source code is based on eclipse/mosquitto and jpmens/mosquitto.

Mosquitto image is based on dockerhub/eclipse-mosquitto.

Postgres image is based on dockerhub/postgres.

current version:

  • mosquitto:1.5.5
  • mosquitto-auth-plug:0.1.2
  • potgres:10.5

Run it with docker-compose

Docker:18.06.1-ce is tested, other docker version should work in theroy.

Docker-compose:1.22.0 is tested, other docker-compose which support docker-compose.yml version 3 will work.

build images

docker-compose build

if you want to build without cache:

docker-compose build --no-cache

run containers

docker-compose up -d

some times the mosquitto container will not work just because the healthcheck is not pass. It's strange, but you can run this code again.

Try other mosquitto version

Edit configure.sh, change the version here if you like.

MOSQUITTO_VERSION="1.5.5"
MOSQUITTO_AUTH_PLUG_VERSION="0.1.2"
POSTGRES_VERSION="10.5"

then execute:

sh ./configre.sh

build your docker images again after that.

Customize mosquitto config

Edit mosquitto/config/config.mk and mosquitto/config/mosquitto.conf.

You can read more about the usage of thease two file in jpmens/mosquitto-auth-plug/README.md