docker-ejabberd
docker-ejabberd copied to clipboard
Ejabberd fails to start when docker container id changes
Currently, when ejabberd inits I can see this message:
"Application ejabberd started on node 'Mnesia@fe29feed088d'" -> after the @, "fe29feed088d" is the current container id.
When the container id changes, the database fails to start since the owner is attached to the previous container id.
Any thoughts on this? Thanks!!
This is how mnesia setup database. You can set ERLANG_NODE env to i.e. ejabberd@localhost and the mnesia database will be the same on each reboot / re-creation.