Craftsman at work

I'm Artur Karbone, coding software architect and independent IT consultant and this is my blog about craftsmanship, architecture, distributed systems, management and much more.

Learn RabbitMQ: Setting up the Environment

We are going to leverage Docker to bootstrap our RabbitMQ environment and keep our development machine as clean as possible at the same time:

docker run -d --name myrabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management

In the command above we are running the container in daemon mode (in background) via -d option, do port forwarding between the host machine and the container via -p (5672 for talking to Rabbit, 15672 in order to open Management Plugin). We also assign a meaningful name via --name option. In addition to that 3-management image tag means that Management Plugin will be enabled out of the box.

We can start/stop the RabbitMQ container later on running the following commands:

docker stop myrabbit

docker start myrabbit

comments powered by Disqus