How to disable the Local MongoDB when using an external Database?

This article applies to MetaDefender Storage Security v3.x

Overview

If you prefer to connect the MetaDefender Storage Security (MDSS) application to your own remote MongoDB database server, you can disable the built-in MongoDB container and its related references by editing the Docker Compose files. While the bundled MongoDB service consumes minimal resources when idle, you can still reclaim those resources by following the steps below.

Instructions

1. Stop the MDSS Application

Before making any configuration changes, stop the MDSS services:

Powershell
Copy

2. Disable the Built-in MongoDB Container

Open the following file in a text editor: /etc/mdss/docker-compose.main.yml

Locate the mongodb service section and add the following:

Powershell
Copy

3. Modify Service Dependencies

In the same file (/etc/mdss/docker-compose.main.yml), navigate to the rabbitmq service section and comment out the MongoDB dependency:

Powershell
Copy

Then, open the file: /etc/mdss/docker-compose.mdss.yml, find the mongomigrations section and comment out the MongoDB dependency there as well:

Powershell
Copy

4. Start the MDSS Application

Once all modifications are complete, start the MDSS services again:

Powershell
Copy

Verification

After restarting, verify that:

  • MDSS is running without the internal MongoDB container.
  • The application is successfully connected to your external MongoDB server.

You can check logs or test basic application functionality to ensure a proper connection.

If you have followed all of the steps above but are still experiencing issues, please follow these instructions on how to generate a Support Package before creating a support case or chatting with one of our support engineers.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard