skip to Main Content

How to fix the docker setup issue

I'm developing a site with MERN stack and I want to do all the things with Docker. But I have trouble with connecting to MongoDB with Docker. Here's my docker-compose.yml file. version: "3.7" services: backend: build: context: ./node_backend dockerfile: Dockerfile.dev…

VIEW QUESTION

MongoDB : – $lookup array inside object

I have 3 collections User, Attendance, Detection User collection Document { "_id": "60dd781d4524e6c116e234d2", "workerFirstName": "AMIT", "workerSurname": "SHAH", "workerId": "1001", "locationName": "HEAD OFFICE", "workerDesignation": "IT", "workerDepartment": "IT", }, Attendance Document { "_id": "61307cee85b5055a15cf01b7", "employeeId":"60dd781d4524e6c116e234d2", "Date": "2022-11-01T00:00:00.000Z", "duration": null, "createdAs": "FULL-DAY", "detections":…

VIEW QUESTION

How to connect to mongodb replicaset (k8s) using compass

I installed mongodb as a replicaset with 3 replicas on my k8s cluster using the bitnami helm chart. So I get these pods: mongodb-0.mongodb-headless.mongodb.svc.cluster.local:27017 mongodb-1.mongodb-headless.mongodb.svc.cluster.local:27017 mongodb-2.mongodb-headless.mongodb.svc.cluster.local:27017 Now I would like to get access using mongodb compass. I set a port…

VIEW QUESTION
Back To Top
Search