Setup a RabbitMQ Cluster using the RabbitMQ official docker image with Docker Compose.
chmod +x start.sh
./start.sh
Docker compose config file, including 3 RabbitMQ service cluster and a HAProxy.
Service | Description |
---|---|
rabbitmq-1 |
RabbitMQ (cluster) |
rabbitmq-2 |
RabbitMQ (cluster member) |
rabbitmq-3 |
RabbitMQ (cluster member) |
haproxy |
Load Balancer |
Host | Description |
---|---|
localhost:5672 |
AMQP 0-9-1 and AMQP 1.0 clients |
localhost:15672 |
HTTP API clients, management UI and rabbitmqadmin |
RABBITMQ_PASSWORD will be generated automatically.
Name | Default |
---|---|
RABBITMQ_USER |
admin |
RABBITMQ_PASSWORD |
? |
RABBITMQ_VHOST |
/ |
.erlang.cookie will be generated automatically.
Load balancer HA Proxy config. Including the load balancing config and the hostnames of the nodes in cluster.