seems like I was nearly there :) yes you copy the volumes folder, and change ownership to those folders. But then the db has the password from your previous installation stored, so you need to change that. Copy the password from your docker-compose.yml file, and add it to the database like this: docker exec -i FOLDERNAME_postgres_1 psql -U lemmy -c "alter user lemmy with password 'bleh'"
(from https://join-lemmy.org/docs/en/administration/backup_and_restore.html)