January 2019
Intermediate to advanced
520 pages
14h 32m
English
To start RabbitMQ, we will use the official image for Docker from DockerHub, located here: https://hub.docker.com/_/rabbitmq/. We have already used Docker to start instances of databases. Starting RabbitMQ is similar:
docker run -it --rm --name test-rabbit -p 5672:5672 rabbitmq:3
We started a container called test-rabbit and forward port 5672 to the same port of the container. RabbitMQ images also exposes ports 4369, 5671, and 25672. If you want to use the advanced features of the message broker, you need to open these ports too.
If you want to start an instance of RabbitMQ and have access to it from other containers, you can set the --hostname arguments for the run command and use the provided name from ...
Read now
Unlock full access