Hello all,
for all of you who are facing the same challenge to migrate from Snap to Docker, I have summarized the steps.
Check prerequisites:
- Rocketchat’s Docker container and MongoDB must have the same version as the Snap installation.
- Download the docker compose file:
curl -L https://raw.githubusercontent.com/RocketChat/Docker.Official.Image/master/compose.yml -O
- Delete the rocketchat service from the compose.yml file.
- Starts the compose process with:
docker-compose up -d
- Switch into the Volume dir from the mongodb:
For me e.g. /opt/RocketChat/mongodb
- Create a dump from the snap RocketChat database:
mongodump -d parties
- Now Import the database into the mongodb docker container
Switch into the container:
docker container exec -it rocketchat-mongodb-1 bash
Switch to the database dir and restore the database:
cd bitnami/mongodb/
mongorestore -d rocketchat dump/parties/
- Replace the compose file and starts the server:
curl -L https://raw.githubusercontent.com/RocketChat/Docker.Official.Image/master/compose.yml -O
docker-compose up -d
The migration is complete.
So it had worked for me now, maybe someone knows there another trick.