Minimal RabbitMQ image with the autocluster plugin
1M+
GitHub Repo: gmr/alpine-rabbitmq-autocluster
** Configuration ** All configuration of the auto-cluster plugin should be done via environment variables.
See the RabbitMQ AutoCluster plugin Wiki 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 \
gavinmroy/alpine-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.
For simple testing, there is an AWS CloudFormation template in the GitHub repo for the image.
Content type
Unrecognized
Digest
Size
24.7 MB
Last updated
over 10 years ago
docker pull gavinmroy/alpine-rabbitmq-autocluster