Follow these steps to create the ReplicaSet:
- First, let's create a Docker network called mongo-cluster for the new cluster using the docker network create command:
docker network create --driver nat mongo-cluster
We will use Azure Files SMB share (globally mapped to the G: drive), which we created in the previous section, in order to store MongoDB's state using bind mounts.
- We need to create new directories in our ...