Enable ssh into docker using Connecting to Docker containers via SSH
Then run Rsync stripping permissions and delelting destination:
apt install rsync rsync -av --no-perms --no-owner --no-group --delete /var/lib/postgresql/data/ root@portainer-vm:/var/lib/docker/volumes/postgres/