As part of setting up my new lab server, I needed to transfer Nginx Proxy Manager from its old home to a new home. This is intended to capture what I did, in case I ever need to repeat the process.
- Backup npm_data/_data and npm_letsencrypt/_data locations on the old host.
- Migrate the stack from the old host to the new host using Portainer.
- Stop the new stack
- It will create an empty installation, which is obviously not useful for me.
- Restore the backup of the stack volumes, replacing the ones the migration just created.
- Restart the stack,
The transfer of Nginx Proxy Manager is now complete. Check that it has connectivity to the downstream servers, and then move any firewall rules so that it is now the external server rather than the old one.
Obviously now clean up the old installation on the old docker server.
