Rabbitmq Cluster using Docker.
In Testing
Assuming that there are 2 machines (machine-1, machine-2), with data directory at /data (you may choose different path). You may deploy all nodes at once using command:
RABBITMQ_USER=<rabbitmq_user>
RABBITMQ_PASSWORD=<rabbitmq_password>
sudo docker run --rm -P -p 5672:5672 -p 25672:25672 -p 4369:4369 -p 44001:44001 --name node1 -e HOST_IP=$COREOS_PRIVATE_IPV4 -e RABBITMQ_USER=$RABBITMQ_USER -e RABBITMQ_PASSWORD=$RABBITMQ_PASSWORD -v /dev/log:/dev/log -v /data:/var/lib/rabbitmq totem/rabbitmq-cluster
where $COREOS_PRIVATE_IPV4 is the private IP address for the host. (If using ec2, ensure that machines can talk to each other on ports: 4369, 5672, 35197) 35197)
If you are using dynamic proxy like yoda (that supports tcp) for port 5672, you may need to add additional port binding in Yoda proxy. e.g.: -p 5673:5672
To configure yoda with tcp listeners and sidekick discovery, see Yoda Proxy and Yoda Discover
Content type
Image
Digest
sha256:d465b9c95…
Size
139.1 MB
Last updated
over 9 years ago
docker pull totem/rabbitmq-cluster