Database upgrade
In order to upgrade the MongoDB instance deployed as a docker image alongside MDSS, up to version 6.0, the desired version can be set in docker-compose.main.linux.yml
and the upgrade performed using the flag -u upgrade_db
.
Before performing the upgrade, make sure that the host is compatible with the latest platform requirements for MongoDB: [https://www.mongodb.com/docs/manual/administration/production-notes/#x86_64](https://www.mongodb.com/docs/manual/administration/production-notes/#x86_64)
This process should not be performed when using an external database, in this case the upgrade should be performed manually following the MongoDB provider documentation.
- The mongodb section in
docker-compose.main.linux.yml
should look like this if upgrading to v6.0:
version'3'
services
mongodb
platform linux/amd64
image"mongo:6.0"
volumes
mongo_db:/data/db
Linux example
- Edit the following file:
/etc/mdss/docker-compose.main.linux.yml
- Run the upgrade command:
mdss -u upgrade_db
Windows example
- Edit the following file:
C:\Program Files\OPSWAT\MetaDefender for Secure Storage\docker\docker-compose.main.linux.yml
- Run the upgrade command from the installation directory (
C:\Program Files\OPSWAT\MetaDefender for Secure Storage\docker
):.\mdss.ps1 -u upgrade_db
Was this page helpful?