--- title: "MongoDB" slug: "mongodb-configuration" description: "Learn to configure MongoDB for Rocket Chat deployments. Ensure secure messaging, reliable collaboration, and scalable open source communication solutions." updated: 2026-05-25T18:05:11Z published: 2026-05-28T01:23:00Z canonical: "docs.rocket.chat/mongodb-configuration" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.rocket.chat/llms.txt > Use this file to discover all available pages before exploring further. # MongoDB In this section, you can learn the following about configuring MongoDB with your Rocket.Chat workspace: - [Connect Rocket.Chat and MongoDB instance](/v1/docs/mongodb-uri-authentication) with a connection string URI. - [Backup and restore](/v1/docs/mongodb-backup-and-restore) MongoDB to maintain backups of your Rocket.Chat data. - [Set additional driver options](/v1/docs/additional-mongodb-driver-options) for MongoDB. - [Configure a MongoDB replica set](/v1/docs/configure-a-replica-set-for-mongodb) to improve data availability and performance. - Make sure that you are using the [supported database versions](/v1/docs/supported-mongodb-versions). > [!WARNING] > When deploying MongoDB, it is crucial to secure MongoDB instances and close all MongoDB ports from public access. Unsecured instances can lead to significant security vulnerabilities. Your vigilance in these practices is essential for maintaining the integrity and safety of your systems.