Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.44 KB

README.md

File metadata and controls

50 lines (32 loc) · 1.44 KB

RabbitMQ Cluster Docker

Setup a RabbitMQ Cluster using the RabbitMQ official docker image with Docker Compose.

Quick start

chmod +x start.sh
./start.sh

Configuration

docker-compose.yml

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

Default expose ports

Host Description
localhost:5672 AMQP 0-9-1 and AMQP 1.0 clients
localhost:15672 HTTP API clients, management UI and rabbitmqadmin

.env

RABBITMQ_PASSWORD will be generated automatically.

Name Default
RABBITMQ_USER admin
RABBITMQ_PASSWORD ?
RABBITMQ_VHOST /

.erlang.cookie

.erlang.cookie will be generated automatically.

haproxy.cfg

Load balancer HA Proxy config. Including the load balancing config and the hostnames of the nodes in cluster.