Category: Database, Data, Kubernetes, Docker

Docker is the defacto toolset for building modern applications and setting up a CI/CD pipeline – helping you build, ship and run your applications in containers on-prem and in the cloud. Whether you’re running on simple compute instances such as AWS EC2 or Azure VMs or something a little more fancy like a hosted Kubernetes service like AWS EKS or Azure AKS, Docker’s toolset is your new BFF.

We’ll use Docker to build our images and Docker Compose to make everything a whole lot easier.

Before we run MongoDB in a container, we want to create a couple of volumes that Docker can manage to store our persistent data and configuration.

Now we can run MongoDB in a container and attach to the volumes and network we created above.

Related Articles