This is a Git repo for a customized version of the official Docker image for RabbitMQ, that allows RabbitMQ to be run as a cluster within a Rancher service.
- Refer to Official RabbitMQ Docker Repository for basic instructions.
- Set Docker hostname to service name, using Rancher's internal DNS FQDN (e.g. rabbit.rancher.internal)
- Provide Rancher service name to environment variable RANCHER_SERVICE_NAME
rabbit:
ports:
- 15672/tcp
hostname: rabbit.edoctor.internal
environment:
RANCHER_SERVICE_NAME: rabbitmq
RABBITMQ_ERLANG_COOKIE: "RABBITCOOKIE"
labels:
io.rancher.container.dns: true
io.rancher.scheduler.affinity:host_label: rabbitmq=true
io.rancher.scheduler.global: 'true'
image: tainaedoctor/rabbitmq