Restore Wordpress Dangling Volume

Hello people,

I have set up docker and rancher and I am deploying wordpress containers using the custom ymls which can be found here:

Yesterday, my server was not available so I tried to restart it and register my host again. After that, all containers were lost and I was left with some dangling volumes which I need to restore.

I read a lot of posts here and in stack overflow about creating an empty volume and replacing it with the dangling volume. None of it worked for me and usually I get a database connection error.

My “stack” in rancher consisted of 3 containers: 1 for mysql, 1 for wordpress and 1 for phpmyadmin. How can I restore those into a working stack again?

This is my first post in this forum and it is quite urgent so I would appreciate any guidance.

Thank you!