As you are migrating, bear in mind that our oficial docker-compose is still using mongo 4.0 with mmap storage engine.
One thing you could do now that will save you from migrating this later, is to use wiredtiger instead.
Here we have a thread that have information on how to do that (small changes)
Here you have supported mongo versions, note that mongo 4.0 is deprecated in Rocket.Chat 4.X, and will probably not be supported later in Rocket.Chat 5.X