skip to Main Content

How to aggregate nested comments using mongodb – CentOS

I have one document for blogpost like this: { "_id": "5d8051cdf0b1017da7bff23c", "description": "<p>will update soon</p>", "topic": "How to setup Kafka Cluster on CentOS", "comments": [ { "created_at": "2019-10-12T02:13:01.859Z", "updated_at": "2019-10-12T02:13:01.859Z", "edited": false, "_id": "5da182aa013d12567e340a2d", "message": "test" "replies": [ { "created_at":…

VIEW QUESTION

Redis – Docker compose for MongoDB ReplicaSet

I have been trying to dockerize my spring boot application which depends on redis, kafka and mongodb. Following is the docker-compose.yml: version: '3.3' services: my-service: image: my-service build: context: ../../ dockerfile: Dockerfile restart: always container_name: my-service environment: KAFKA_CONFLUENT_BOOTSTRAP_SERVERS: kafka:9092 MONGO_HOSTS:…

VIEW QUESTION

Install Mongo 3.6 on CentOS 7

I am trying to install Mongo version 3.6 on CentOS, but the installation consistently fails with the following error: `https://repo.mongodb.org/yum/redhat//mongodb-org/3.6/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. failure: repodata/repomd.xml from mongodb-org-3.6: [Errno 256] No more mirrors…

VIEW QUESTION
Back To Top
Search