Pangolin Server Migration

Pangolin Server Migration

This document provides a clear, step-by-step procedure for migrating the Pangolin web application to a new server with minimal downtime.

1. Copy files to the new server

Run on the old server:
rsync -avu /opt/stack/pangolin/* root@<NewServerIP>:/opt/stack/pangolin

2. Stop containers on the old server and start them on the new server

On the old server:
cd /opt/stack/pangolin; docker compose down

On the new server:
cd /opt/stack/pangolin; docker compose up -d

3. Update DNS records

At your DNS provider, change the records to point to the new server IP for:
- *
- example.com
- pangolin.example.com

4. Restart newt containers on all local Docker hosts that tunnel to Pangolin

On each remote system that tunnels to Pangolin via newt:
cd /opt/stack/newt/; docker compose up -d --force-recreate --build

5. Verify services

  • Log into Pangolin.
  • Confirm all sites and resources are healthy.
  • Check that all services are running correctly and you can access them.