MongoDB Stack is a project that provides a collection of examples that show how to run MongoDB in development using Docker containers and Docker-Compose. Each example is represented as a separate stack. And each stack can be run using either the docker CLI or a docker-compose file.
-
Host a single node MongoDB instance using docker and docker-compose.
-
Host a single node MongoDB instance using docker and docker-compose. Configure a bind mount for MongoDB database files.
-
Host a single node MongoDB instance using docker and docker-compose. Use environment variables to specify authentication information and initial database. Specify a javascript file that will be executed as part of setup and initialization (uses entry point scripts)
-
Host a single node MongoDB instance using docker and docker-compose. Configure bind mounts for MongoDB database files and MongoDB configuration file.
-
Using Configuration File With Authorization
Host a single node MongoDB instance using docker and docker-compose. Configure bind mounts for MongoDB database files and MongoDB configuration file. Specify authorization in MongoDB configuration file.
-
Host a 3-node MongoDB replica set using docker and docker-compose.
-
Host a single MongoDB instance and seed the database with some initial data. We use the sample MFlix database that is available from MongoDB Atlas to seed the database.