I followed the steps provided in this link.
I ran below commands on my ubuntu machine docker installed.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
To setup cluster:
docker run -d --name="rabbit1" --hostname="rabbit1" -e RABBITMQ_ERLANG_COOKIE="secret string" -e RABBITMQ_NODENAME="rabbit1" --volume=/home/userone/rabbitmq.config:/etc/rabbitmq/rabbitmq.config --volume=/home/userone/definitions.json:/etc/rabbitmq/definitions.json --publish="4369:4369" --publish="5671:5671" --publish="5672:5672" --publish="15671:15671" --publish="15672:15672" --publish="25672:25672" rabbitmq:3-management
docker run -d --name="rabbit2" --hostname="rabbit2" -e RABBITMQ_ERLANG_COOKIE="secret string" -e RABBITMQ_NODENAME="rabbit2" --volume=/home/userone/rabbitmq.config:/etc/rabbitmq/rabbitmq.config --volume=/home/userone/definitions.json:/etc/rabbitmq/definitions.json --link="rabbit1:rabbit1" rabbitmq:3-management
docker run -d --name="rabbit3" --hostname="rabbit3" -e RABBITMQ_ERLANG_COOKIE="secret string" -e RABBITMQ_NODENAME="rabbit3" --volume=/home/userone/rabbitmq.config:/etc/rabbitmq/rabbitmq.config --volume=/home/userone/definitions.json:/etc/rabbitmq/definitions.json --link="rabbit1:rabbit1" --link="rabbit2:rabbit2" rabbitmq:3-management
But it is showing single node in the rabbitmq page.
0 Answers