diff --git a/README.md b/README.md index b5870e1..b9b533d 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,17 @@ The main benifit with this approach is that you can use [any version](https://hu ## Install ``` -> git clone https://github.com/pardahlman/docker-rabbitmq-cluster.git +> git clone https://github.com/ameizi/docker-rabbitmq-cluster.git > cd docker-rabbitmq-cluster > docker-compose up ``` Most things will be how you expect: -* The default username and password are `guest`/`guest` -* The broker accepts connections on `localhost:5672` +* The Default username and password are `guest`/`guest` +* The Broker accepts connections on `localhost:5672` * The Management interface is found at `localhost:15672` +* The HAProxy interface is found at `localhost:1936` ## Customize diff --git a/cluster-entrypoint.sh b/cluster-entrypoint.sh index 2c29a55..76a01a1 100755 --- a/cluster-entrypoint.sh +++ b/cluster-entrypoint.sh @@ -9,6 +9,11 @@ set -e # Do the cluster dance rabbitmqctl stop_app + +# Must have this line, otherwise the node will be blocked to join cluster again. +rabbitmqctl reset + +# Join cluster rabbitmqctl join_cluster rabbit@rabbitmq1 # Stop the entire RMQ server. This is done so that we diff --git a/docker-compose.yml b/docker-compose.yml index 4ba9561..125879d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,3 +44,4 @@ services: ports: - 15672:15672 - 5672:5672 + - 1936:1936