All Questions
Tagged with docker-compose mongodb
913
questions
0
votes
0
answers
3
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: root MONGO_INITDB_ROOT_PASSWORD: ...
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 ...
0
votes
1
answer
22
views
MongoDB Authentication failes for any user
I'm using docker compose to pull up a MongoDB container and a simple Node CRUD app, really nothing fancy. The containers come up and seem to work so far, but when I try to enable authentication and ...
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 ...
0
votes
2
answers
76
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: .
...
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:
...
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
...
0
votes
0
answers
46
views
Bind mongodb replicaset behind Traefik proxy server with TLS
I have mongodb replicaset with Traefik. I configured the mongodb with 3 instances using docker compose (I do understant that is not optimal with all mongo instances in one server - let us skip that ...
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 ...
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 ...
0
votes
0
answers
28
views
Mongo database imported at image build, deleted when deployed
I am deploying a MongoDB image, and I want to make a custom image so that it has some data pre-imported. When I build the image, it shows that the files have been correctly imported:
> docker ...
1
vote
1
answer
301
views
Error "MongoServerError: This node was not started with replication enabled." when setting up replicaset in mongodb (using docker compose)
I'm currently trying to setup a replicaset in my mongodb setup in order to enable Change Streams functionality (which I need for the socket.io MongoDB-Adapter).
Current Setup
I have this service in my ...
0
votes
0
answers
176
views
How can I use MongoDB transactions in a local Docker container?
I am developing a web application that communicates with MongoDB, so I am using docker to develop/test locally.
My docker compose is like this:
services:
auth-terrai:
image: auth-app
build:
...
0
votes
1
answer
109
views
Docker compose issue with mongo db and spring boot
I am trying to connect my spring boot app to docker mongo db using compose but it unable to connect I have an uri in application.properties that i need to override or will connect to atlas mongodb ...
1
vote
0
answers
59
views
Cannot initialize a mongodb replica set on Docker using "docker-compose.yaml" file
I already tried to find similar questions, but those do not seem to resolve my issue. My issue is very similar, but my configuration is already good as per this related issues:
Cannot initialize a ...