Setup RabbitMQ
Setup and running RabbitMQ in docker
# Get the image with management UI
$ docker pull rabbitmq:3-management
# Start RabbitMQ as a daemon
$ docker run -d --hostname my-rabbit --name dev-rabbit \
-e RABBITMQ_ERLANG_COOKIE='My_SeCrEt' \
-p 5672:5672 -p 15672:15672 \
rabbitmq:3-management
$ docker logs dev-rabbit
# connect to rabbitmqctl
$ docker run -it --rm -e RABBITMQ_ERLANG_COOKIE='My_SeCrEt' rabbitmq:3 bash
root@xxx $ rabbitmqctl list_users
# visit
# http://localhost:15672