Migrating docker seafile server to another VPS

I’ve got a small installation of seafile 7,1 done with docker, and now I want to migrate it to a new VPS.

I’m unsure about the data migration procedure.

My idea is something like :

  1. stop all the docker containers
  2. rsync the /opt/seafile-* folder to the new host
  3. change the dns record
  4. start from docker compose.

I’m missing something here ?