FileCloud versions 23.x require MongoDB version 6. To upgrade to MongoDB version 6, you must upgrade the Docker image to 23.x.
Before upgrade, make a backup or take a snapshot of your server.
To upgrade the Docker image:
To create a dump of the database, enter the following into the command line:
Copy the dump folder from the container to the host machine.
Note: Do not delete the dump folder. You are required to use it in step 7 to restore the database.
To make sure the dump folder has been copied successfully to the host machine, enter:
List the volumes:
Delete the database volume and the Filecloud server volume where the application code files are stored, as shown in the following commands.
Please be careful to delete these volumes only.
Edit your docker-compose.yml file, and change the version of MongoDB to mongo:6.0.8 and FileCloud server to filecloud/filecloudserver23.1:latest as shown below:
Start Docker using the new docker-compose.yml file
Copy the dump folder created in step 2 to the filecloud.mongodb container, and restore the database.
Confirm that the containers are running.
Set the compatibility version for MongoDB to 6.0.
- Confirm that everything is working as expected in the FileCloud user portal and admin portal.