docker run \ -e "MONGO_URL=mongodb://rctestuser:mymongopassword@mongo:27017/rocketchat?authSource=admin" \
-e "MONGO_OPLOG_URL=mongodb://rctestuser:mymongopassword@mongo:27017/local?authSource=admin" \
rocketchat/rocket.chat:X.X.X
Mongo Authentication Role
If you are using mongo authentication you might also need to add the clustermonitor role to your user. This is a requirement in order for your instance to be able to use change streams.
Execute the following command replacing the users with that selected for your users.