Public Repository

Last pushed: 2 years ago
Short Description
Docker Image for rabbitmq cluster
Full Description

This docker image brings up a RabbitMQ server and can be used for bringing up a full-fledged clustered fully configurable with the number of nodes using fig. This image is simple recreation of following repo https://registry.hub.docker.com/u/bijukunjummen/rabbitmq-server/

Here is a sample fig file which brings up a 3 node cluster and can easily be extended:

To bring up the cluster install docker and fig on your machine.

Pull this image in docker docker pull ratewar/rabbitmq-server

copy the below text in fig.yml and just type fig up -d to bring up a 3 node rabbitmq cluster

rabbit1:
  image: ratewar/rabbitmq-server
  hostname: rabbit1
  ports:
    - "5672:5672"
    - "15672:15672"

rabbit2:
  image: ratewar/rabbitmq-server
  hostname: rabbit2
  links:
    - rabbit1
  environment: 
   - CLUSTERED=true
   - CLUSTER_WITH=rabbit1
   - RAM_NODE=true
  ports:
      - "5673:5672"
      - "15673:15672"

rabbit3:
  image: ratewar/rabbitmq-server
  hostname: rabbit3
  links:
    - rabbit1
    - rabbit2
  environment: 
   - CLUSTERED=true
   - CLUSTER_WITH=rabbit1   
  ports:
        - "5674:5672"

if needed, additional nodes can be added to this file. If the entire cluster comes up, the management console can be accessed at http://<dockerip>:15672
and connection host should look like this: dockerip:5672,dockerip:5673,dockerip:5674

Docker Pull Command
Owner
ratewar

Comments (0)