Migrate: Adopt Official MongoDB Image, Implement Safety Gates & Update Docs #5
+126
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature: Migrate to Official MongoDB Docker Image
This PR updates the MongoDB service to use the official Docker image (
mongodb/mongodb-community-server) instead of the deprecated Bitnami image.This is a critical change for better long-term maintenance, stability, and to ensure we are running on fully supported MongoDB releases.
Technical Changes & Migration Safety
To guarantee a clean and safe transition for all users, the following safeguards have been implemented:
1. New Volume Name to Prevent Corruption
mongodb-datatoofficial-mongodb-data.2. Acknowledge Gate for Data Loss Prevention
mongodb-datavolume will be ignored and lost. This step ensures users migrating from an older deployment are aware of the data path and prevents accidental loss.3. Resolution of Startup Error
This PR directly addresses the common
RuntimeErrorthat occurs when users attempt to start the new official image without first acknowledging the migration or dealing with the legacy volume. The pre-flight check ensures users are routed to the proper migration steps rather than hitting a generic error: