Dockerized setup for creating a RabbitMQ cluster with consul. It includes all the necessary configurations to easily deploy a RabbitMQ cluster using Docker containers.
- Clone this repository:
git clone https://github.com/buraketmen/rabbitmq-cluster.git
cd rabbitmq-cluster
- Build your own image, and define
RABBITMQ_USERNAME
andRABBITMQ_PASSWORD
envs. (Alternatively, you can use my quorum image or its Dockerfile to handle MQTT/STOMP/AMQP default users by single env variable Source)
docker build -t <your-image> .
- Initialize Docker Swarm (if not already initialized)
docker swarm init
- Deploy the RabbitMQ Stack
docker stack deploy -c docker-compose.yml rabbitmq-cluster
- Access the RabbitMQ Management UI at http://localhost:15672
- Default username and password will be your
RABBITMQ_USERNAME
andRABBITMQ_PASSWORD
envs. You can change it fromdocker-compose.yml
file easily.