We are facing the following problem: How to run RabbitMQ in a Docker-Swarm with persistent Data.
Currently we have the following setup in place:
- Docker-Swarm 3 Nodes
- GlusterFS as replicated Filesystem between all nodes
- RabbitMQ with Consul Image: gavinmroy/alpine-rabbitmq-autocluster
This works most of the times fine.. but now we have to use durable queues to persist data.
We have tried to use --hostnames or to set the RABBITMQ_NODENAME, than we get a subdirectory for every started node like "rabbit@CONTAINERID" the problem: when the containers are restarted a new Folder is used to persist the data (new ContainerID).. any suggestions how to get a working setup, with usage of the the Docker Swarm features?