As I explored and set up an increased number of FOSS software using containers(Docker and LXD) and virtual machines(Multipass) in my home lab environment, I realized the difficulty in remembering the different ports the applications and containers are running. The solution to address this problem was to have a Domain Name System for the local network, which works to resolve local and external addresses with a reverse proxy to redirect calls based on DNS resolution.
Configure Sharding in MongoDB on Docker Containers
In my previous blog post, I posted about configuring Replica Set to meet high availability requirements.
In this post, i cover
- MongoDB Sharded Cluster Components
- Steps to create MongoDB Sharded Cluster using Docker Compose
- Add Replica Set as a Shard
- Sharding Data
- Verify Distribution of Data
MongoDB Replicaset with Persistent Volume using Docker Compose
In this article we will see the steps required to create and configure MongoDB replicaset containers on persistent volumes using Docker Compose. Compose was developed to define, configure and spin-up multi-container docker applications with single command, further reducing . Extensive usage of Docker with several container management quickly becomes cumbersome, Compose overcomes this problem and allows to easily handle multiple containers at once using YAML configuration docker-compose.yml
Create MongoDB Standalone and Replica Set containers using Docker
Docker Containers offer easy setup, customization and scalability. In this article, i will walk you through how to use Docker to setup MongoDB standalone and replica set containers within minutes.
The article is divided in two parts, the first part is setting up the standalone MongoDB container and second part is setting up and grouping MongoDB containers as member of replica set with Docker.
Let’s get started.