Because the way that RabbitMQ manage cluster, it's recommended to set the -h <host> option to a unique name for a node. It will be used for the other nodes to connect to the cluster.
docker run[ -p <port>:<port>...][ -v <volume>:<volume>...][ -e <env>=<env>...][ -h <host>] qasymphony/rabbitmq:<version>
A RabbitMQ image that can run in cluster mode.
/conf configuration file storage. This could be shared across a cluster./data data storage. RabbitMQ will have different storage for each node name, so this could be shared only if each node in a cluster has different name./logs log storage. Just as /data, this volume can only be shared if each node in a cluster has different name./root this volume is to share .erlang.cookie file. This can be ignored if the cookie is passed through environment variable.4369 epmd25672 Erlang distribution5672 AMQP 0-9-1 without TLS5671 AMQP 0-9-1 with TLS15672 if management plugin is enabled61613 if STOMP is enabled61614 if STOMP is enabled1883 if MQTT is enabled8883 if MQTT is enabledRABBITMQ_NODENAME the name of the RabbitMQ node, default to $HOSTNAMERABBITMQ_COOKIE this will be the value of .erlang.cookie. This could be any string. If not specified, RabbitMQ will generate a random one.RABBITMQ_PLUGINS specify plugins for RabbitMQ node, default to [rabbitmq_management_visualiser,rabbitmq_stomp]..RABBITMQ_CLUSTER_HOST define this for RabbitMQ to join a cluster. The host must be in /etc/hosts file with support of Docker container linking --link option and -h option. The host name must be the same with the /etc/hostname in the host machine.RABBITMQ_CLUSTER_NODENAME The value of this one must be the RABBITMQ_NODENAME of the host, default to rabbit.RABBITMQ_HOME internal use only and should not be changed. This is the installation location of RabbitMQ binary. The default value is /usr/local/rabbitmqrabbitmq_server by default and log the output to stdout.docker run qasymphony/rabbitmq:<version> /bin/bash
Content type
Image
Digest
sha256:6b4b88f1d…
Size
208.9 MB
Last updated
about 11 years ago
docker pull qasymphony/rabbitmq