skip to Main Content

Can't connect to MongoDB Replica Set in Docker

I am attempting to run a MongoDB cluster locally to test transactions. I've leveraged the Bitnami docker-compose file version: '2' services: mongodb-primary: image: 'bitnami/mongodb:latest' environment: - MONGODB_ADVERTISED_HOSTNAME=mongodb-primary - MONGODB_REPLICA_SET_MODE=primary - MONGODB_ROOT_PASSWORD=password123 - MONGODB_REPLICA_SET_KEY=replicasetkey123 ports: - 27017:27017 volumes: - 'mongodb_master_data:/bitnami' mongodb-secondary:…

VIEW QUESTION

Mongodb aggregation to find outliers

In my mongodb collection documents are stored in the following format: { "_id" : ObjectId("62XXXXXX"), "res" : 12, ... } { "_id" : ObjectId("63XXXXXX"), "res" : 23, ... } { "_id" : ObjectId("64XXXXXX"), "res" : 78, ... } ... I…

VIEW QUESTION
Back To Top
Search