RabbitMQ Management on Docker on Azure

Ran into issues using the docker image for RabbitMQ on Azure. 1

$ sudo bash
$ cd /etc/docker/compose
$ docker-compose down
$ nano /etc/docker/compose/docker-compose.yml
rabbitmq:
# environment:
# – RABBITMQ_NODENAME=qti-rabbitmq
hostname: qti-rabbitmq
image: rabbitmq
ports:
– 5672:5672
– 15672:15672
restart: always
volumes:
– /var/lib/rabbitmq:/var/lib/rabbitmq
$ docker-compose up -d
$ docker exec compose_rabbitmq_1 rabbitmq-plugins enable rabbitmq_management
$ docker exec compose_rabbitmq_1 rabbitmqctl status

Then, login in to the rabbitmq management page at http://[public-ip]:15672 with guest:guest