It's possible to provide extra to the Mongo driver by setting the MONGO_OPTIONS
environment variable to a JSON string, e.g.:
You might want to do this, for example, if you're backing Rocket.Chat with a TLS-secured Mongo and need to pass certificates/PEM files, etc. to connect to it.
If you see the following error during startup:
You can try increasing server selection time adding the following property to MONGO_OPTIONS
to change the default value of 10000
to 20000
: