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.

NOTE: If your current version is below 7.2.0, proceed with Step 1 and Step 2. Otherwise, directly proceed to Step 2.

...

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

...