Versions Compared

Key

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

...

Code Block
docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml pull
docker exec mongodb /bin/bash -c 'mongo admin --username="${MONGODB_ADMIN_USER}" --password="${MONGODB_ADMIN_PASS}" --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

Note Step 2 involves the graceful shutdown of the MongoDB service, a mandatory procedure when transitioning from versions below 6.12.x to version 7.x . This ensures a smooth upgrade process.

You may proceed to skip this step if your upgrade is within the 7.x version range.

Next Step : Follow the Post Upgrade Steps