/mongodb-stack

MongoDB Stack is a project that provides a collection of examples that show how to run MongoDB in development using docker and docker-compose

Primary LanguageJavaScript

MongoDB Stack

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.

  • Basic

    Host a single node MongoDB instance using docker and docker-compose.

  • Using Bind Mounts

    Host a single node MongoDB instance using docker and docker-compose. Configure a bind mount for MongoDB database files.

  • Using Environment Variables

    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)

  • Using Configuration File

    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.

  • 3-Node MongoDB Replica Set

    Host a 3-node MongoDB replica set using docker and docker-compose.

  • Database Seed

    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.