Use Docker to run MongoDB Replica Set phptuts April 9, 2022 Step 1: Pull Mongo DB images docker pull mongo:4 Step 2: Create a docker network Example network name: mongo-replicaset docker network create mongo-replicaset Step 3:… Continue Reading
NestJS TypeORM config for MongoDB Replica Set phptuts November 1, 2020 File ormconfig.json Method 1: Same ports Method 2: Different ports Continue Reading
How to create a MongoDB Replica Set on CentOS 8 phptuts November 1, 2020 A replica set is a cluster of MongoDB database servers that implements master-slave (primary-secondary) replication. Replica sets also fail over automatically, so if one of… Continue Reading