Run RabbitMQ Locally

Here's how to run RabbitMQ in a local dev environment.

First, install Docker Desktop.

Then start docker

systemctl --user start docker-desktop

Then get the RabbitMQ image from Docker Hub:

docker pull rabbitmq:3-management

Then create a container:

docker run -d --name some-rabbit -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest -p 5672:5672 -p 15672:15672 rabbitmq:3-management

Note that we're forwarding the port for rabbit (5672) and the admin console (15672).

You can also set the username and password. (Or you can leave these out -- the rabbit default is "guest"/"guest".)

Now Rabbit's running. You can jump into the web console at http://localhost:15672/ and start adding messages.