You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've deployed a rabbitmq container using docker-compose which works absolutely fine. But when I stop the service, remove the container and then restart again I don't see rabbitmq data persistent.
I've just had a similar problem and the solution was to set a fix hostname for the rabbitmq container. rabbitmq creates the database directory using the hostname. If it is not fix, it recreates a folder each time the container is started and does not reuse the previous one which contains all persisted messages.
one solution is to tell rabbitmq which node name to use with an environmental variable in the rabbitmq definition :
environment:
RABBITMQ_NODENAME: node@rabbitmq
I've deployed a rabbitmq container using
docker-compose
which works absolutely fine. But when I stop the service, remove the container and then restart again I don't see rabbitmq data persistent.Here is how to reproduce it:
docker-compose.yml:
Dockerfile
Same as https://github.com/dockerfile/rabbitmq/blob/master/Dockerfile
Steps:
Now when I stop, remove and start container again
As we can see
user1
is missing. Can you please suggest where I'm doing wrong. Doing same with mysql persisted data works though.The text was updated successfully, but these errors were encountered: