docker-rabbitmq-cluster
docker-rabbitmq-cluster copied to clipboard
Storing logs and mnesia on host system?
Thanks for the great work. Starting to explore getting RabbitMQ into the docker context and your work was a fantastic starting point. I was curious how this can be changed to store the mnesia and logs files into the host system. For example, attaching an external SSD drives to an instance. Each rabbitmq instance would store to its own mensia and log path.
/mnt/var/lib/rabbitmq1 /mnt/var/lib/rabbitmq2 /mnt/var/lib/rabbitmq3
I was not clear on how that might be accomplished in your setup. Would it be as simple as adding the volumes to fig.yml?
volumes: - /mnt/var/lib/rabbitmq1:/var/lib/rabbitmq - /mnt/var/log/rabbitmq1:/var/log/rabbitmq
Maybe the rabbitmq.config might also need this path?
Again, thank you for sharing.