Secure RabbitMQ with MQTT plugin on Docker

I am running RabbitMQ on Docker with the MQTT plugin.
My Docker file is:

FROM rabbitmq

RUN rabbitmq-plugins enable --offline rabbitmq_management
RUN rabbitmq-plugins enable --offline rabbitmq_mqtt

EXPOSE 15671 15672

How can I secure the connection to the MQTT plugin?
For example for authentication, the MQTT adapter can be configured to use user name/pass using allow_anonymous

  • Run MongoDB in a Docker container with no volumes
  • Creating a docker Base Image
  • How to create my nginx.conf
  • How to provide parameter to docker run with “oc new-app” in OpenShift?
  • How to attach to a demonized container in docker
  • How to limit IO speed in docker and share file with system in the same time?
  • How to change the RabbitMQ docker image configuration?


  • keep Guard running inside a docker container
  • How to change resolv.conf for existing docker containers
  • Can't get localhost to connect to docker inside vagrant
  • How to add volume to Docker but exclude files
  • Can’t push to docker hub (authentication required)
  • Access to Docker container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.