Info on upgrading Dockerized MongoDB and Rocketchat

hi all,

I have multiple installations for my company’s clients with Rocketchat 3.18.0 (or prior) and mongoDB 4.0. All of them have been simply launched with docker run, there was no need to use a docker file. All of the mongoDBs already have wiredTiger as storage engine.

I simply used, for example:

docker run --name db -p -v /wos1/db_data_docker/:/data/db -d mongo:4.0 --smallfiles --replSet rs0 --oplogSize 128

And then, for rocketchat:

docker run --name rocketchat -p 3000:3000 -v /wos1/rocket_fs_docker/files:/opt/rocket_fs --link db --env ROOT_URL= --env MONGO_URL=mongodb://db:27017/rocketchat --env MONGO_OPLOG_URL=mongodb://db:27017/local -d rocketchat/

Since we’d like to move to the latest rocket version, I was trying to simply upgrade to rocket 4.3.2 and got some errors, the container crashed and I noticed there was the need to upgrade MongoDB.

My question is: is there a way to upgrade my current mongoDB 4.0 docker to 5.0 without the need to use docker compose? I would like to keep these installations as simple as possible.


Edit: forgot to mention that every mongoDB already has wiredTiger as storage engine.