I am currently trying to migrate my Nextcloud 15 Snap installation to a Docker installation for use with Collabora and many many more reasons. Since my installation holds a bunch of data and I don’t want to migrate it manually like a noob every time (better to learn it properly once), I wanted to ask for advice/help before messing around.
What I think I need to do
So, as far as I understand so far, I need to migrate
- User files
- The database (MySQL since I am coming from the official Snap)
I have heard that to migrate apps and user data, I basically just need to copy the folders to their place in my Docker setup. (is this correct?) For the database, since I am going to use PostgreSQL in my Docker installation, I will have to convert the database. When/Where do I do this? Do I convert the database in my existing Snap installation, or should I first migrate everything to Docker and do the conversion there? Would I need to set up MySQL on Docker first before being able to convert it to PostgreSQL?
Honestly for this I would really just appreciate your input on how to proceed. Any experiences or advice is very appreciated.
What I have done so far
- Exported and backed up all data from the Snap
- Set up a
docker-compose.ymlfile for Nextcloud with PostgreSQL (As well as Caddy as reverse proxy and Collabora, which all works)
I am happy to provide my
docker-compose.yml file or anything else you need to help. Thanks in advance!