Public Repository

Last pushed: 2 months ago
Short Description
RabbitMQ image based on apline linux with the autocluster plugin
Full Description

rabbitmq-autocluster

RabbitMQ image based on apline linux with the autocluster plugin

  • RabbitMQ Version: 3.6.6
  • Autocluster Version: 0.10.0

Enabled plugins

  • Autocluster
  • Delayed Message Exchange
  • Management
  • Top

Configuration

All configuration of the auto-cluster plugin should be done via environment variables.

See the RabbitMQ AutoCluster plugin Readme for configuration settings.

Example Usage

The following example configures the autocluster plugin for use in an
AWS EC2 Autoscaling group:

docker run --name rabbitmq -d \
  -e AUTOCLUSTER_TYPE=aws \
  -e AUTOCLUSTER_CLEANUP=true \
  -e CLEANUP_WARN_ONLY=false \
  -e AWS_DEFAULT_REGION=us-east-1 \
  -p 4369:4369 \
  -p 5672:5672 \
  -p 15672:15672 \
  -p 25672:25672 \
  bringg/rabbitmq-autocluster

To use the AWS autocluster features, you will need an IAM policy that allows the
plugin to discover the node list. The following is an example of such a policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "autoscaling:DescribeAutoScalingInstances",
                "ec2:DescribeInstances"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}

If you do not want to use the IAM role for the instances, you could create a role
and specify the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY when starting
the container.

Docker Pull Command
Owner
bringg