https://github.com/IITC-College/mongo-docker

Lab — Persist MongoDB Data with Docker Named Volumes

Working branch: main

The seed script already exists and works.

Your task is the Docker setup and persistence configuration.


Real-World Scenario

The backend team already has a MongoDB database running locally on developer machines.

The DevOps team now wants to standardize the environment using Docker so:

At first, MongoDB works correctly inside Docker.

Then developers discover a major issue:

Every time the MongoDB container is removed, all database data disappears.

Your task is to redesign the setup so database data survives container removal.

You must investigate: