Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To ensure a smooth upgrade process, please follow the instructions below.

Table of Contents

Note: If your current version is below 7.2.0 upgrade to 7.2.0 first then upgrade to latest by following Step 2. Otherwise, if already on 7.2 and above proceed with Step 1 only.

...

Code Block
docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml pull
docker exec mongodb /bin/bash -c 'mongo admin --username="${MONGO_INITDB_ROOT_USERNAME}" --password="${MONGO_INITDB_ROOT_PASSWORD}" --eval "db.shutdownServer()"'
docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml down
docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml up -d

Next Step : Follow the Post Upgrade Steps

...

Only for those whose current version is below 7.2.0,

Before you continue with any latest version (> 7.2.0), it's important to update your system to version 7.2.0 first. By following these steps:

...

Note: And, at the end follow the Step 1. after completing the above Step 2c changes.

Step 2 d. - Upgrade Steps

If your current version is 8.1.x and want to upgrade to 8.2.x

...