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
EXPOSE 1883

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

  • Where to keep dependencies (large files or directory structures) for use with Docker/Docker-Compose?
  • docker websphere can't get the admin console
  • How to convert docker run command into json file?
  • Issue connecting elasticsearch cluster (i.e. non dockerized) from elasticsearch client running in docker container
  • Jenkins docker plugin and linked slaves
  • Docker-compose scale command from within container
  • How to change the RabbitMQ docker image configuration?

    Thanks!

  • NFS or mounting shares with docker
  • Docker push failing over proxy
  • Docker load image is not working on Windows 10
  • Can I use a Github repository as the source of a Docker image?
  • Set Docker_Opts in centos
  • How to restore a .sql.gz dump on a Docker MySQL instance?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.