'How can I completely duplcate a docker environment including persistent data and ports

I am using Nginx Proxy Manager as my reverse proxy, it works well and really like the UI/Features.

I need to migrate it from my current host to a new one. How the heck do I go about it? I need to copy the containers, the network/port config, and the persistent data stores, everything. I want to duplicate my current containers so I have two parallel identical instances that I can then start swapping my DNS mappings from the old IP to the new one.

I just can't seem to find the right mumbo-jumbo I need to incant to make docker do what I need.

Please help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source