Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
17 views

Authentication failed while connecting to docker-compose mongodb via springboot application

docker-compose.yml version: '4' services: mongodb: image: mongo:7.0.5 container_name: mongodb ports: - "27017:27017" environment: MONGO_INITDB_ROOT_USERNAME: ...
M Hari's user avatar
  • 1
0 votes
1 answer
48 views

MongoDB Authentication Failed in Docker using MongoDB Compass

I struggled here for many hours but was still stuck. I am trying to set up a MongoDB Docker container to use as a local database and use MongoDB Compass to connect. Here is my docker-compose file ...
John's user avatar
  • 65
-1 votes
0 answers
28 views

How to run MongoDB and Mongo-express with Kubernetes? [closed]

I was running MongoDB and Mongo-express with Kubernetes (by following tutotial by famous Nana) I am not able to open the external service i created. On seeing the logs of Pod I found following. Sun ...
mohit singla's user avatar
0 votes
0 answers
34 views

Resolving ECONNREFUSED Errors in Docker Compose with Next.js, Payload CMS, and MongoDB

I'm working on a project that involves setting up a multi-container environment using Docker Compose. The setup includes a Next.js application (blueastowel), a Payload CMS backend (payload), and a ...
sayinmehmet47's user avatar
0 votes
0 answers
24 views

Docker container cant connect with mongoDb

Issue Summary: I'm encountering a connection error between my Spring Boot application and a MongoDB database running in separate Docker containers. Error Description: I'm receiving the following error:...
Pratik Mondal's user avatar
0 votes
0 answers
19 views

Unable to connect to mongodb replica set running in docker

Here's how I created the replica set version: "3.0" volumes: ac-mongo-keys1: ac-mongo-data-10: ac-mongo-data-20: ac-mongo-data-30: networks: ac-cluster10: driver: bridge ...
Shwetanka's user avatar
  • 5,036
0 votes
0 answers
20 views

Mongo DB Cluster - No Host Maps to this Node Error

I am running Mongo db in a container and trying to set it up as the first node of a replica set. I using the following script to setup the replica set node rs.initiate({ _id: "rs1", version: ...
N0000B's user avatar
  • 439
0 votes
1 answer
69 views

MongoDB docker container connection localhost not working

I am currently working on a remote VM. I set up a Container via a docker-compose.yml file. Everything seems fine. I wrote a script to set up a User for the Database with an initial password (besides ...
Maximus0000's user avatar
0 votes
2 answers
77 views

MongoDB Authentication Issues with Node.js and Mongo-Express in Docker Compose setup

I was trying to use docker in a project I built a while back and I'm having trouble with MongoDB authentication when using Docker Compose. Here's my docker-compose.yml: services: web: build: . ...
weaver's user avatar
  • 13
0 votes
1 answer
34 views

Config "eviction" for MongoDB in docker compose

I have a mongodb service in Docker and trying to config eviction option for it like the following in the docker compose yaml file: mongodb-geo: image: mongo:5.0 hostname: geo-db volumes: ...
OmG's user avatar
  • 18.7k
0 votes
1 answer
30 views

How to seed a MongoDB single node replica set when the container starts

I was using a standalone MongoDB instance and had the following: Docker Compose: database: build: context: . dockerfile: ./db/Dockerfile.mongodb ports: - 12000:27017 ...
tech-ebe's user avatar
0 votes
0 answers
61 views

MongoDB getaddrinfo ENOTFOUND host.docker.internal

I tried to create a replica set with on my docker-compose file, the replica set members are up and running and i also can connect with mongosh -- and i can run rs.status(). But i cannot connect the ...
antisuri's user avatar
0 votes
1 answer
93 views

How should I run my mongodb migrations in a Dockerized app?

I am new to Docker and was wondering how I should run my migrations. I'm using the following Dockerfile for my Node js backend FROM node:14.16.0-alpine3.13 RUN addgroup app && adduser -S -G ...
Ashraf Lobo's user avatar
0 votes
0 answers
17 views

.js script inside docker-entrypoint-initdb.d doesn't work

I'm using docker compose to run mongo container and create a user with js script inside docker-entrypoint-initdb.d but when I run "docker compose up mongo " command, the container is up but ...
Lycan's user avatar
  • 19
0 votes
1 answer
79 views

Connection Timeout: Cant connect mongo with debezium for CDC

I have mongo and kafka connect set up in docker-compose. I want to enable CDC from mongo with debezium. These are my services: mongodb: image: mongo restart: always command: mongod --...
Mir Humayun Nisar's user avatar

15 30 50 per page
1
2 3 4 5
158