adaltas / ece-devops-2022-fall

Resources for the ECE 2022 DevOps course
65 stars 70 forks source link

Docker compose with Mongo #8

Closed AntoineMilliot closed 1 year ago

AntoineMilliot commented 1 year ago

When I run

docker-compose up

The server start properly but the mongo connection does not, I have a message error

 connect ECONNREFUSED 127.0.0.1:27017

I do not find any solution on internet

Eagles27 commented 1 year ago

Hi @AntoineMilliot 👋🏼

You should white List all ip's addresses on mongo Atlas or just authorize some Ip's as you want. To do that you have to change some settings into Network Access on mongo Atlas, look at the picture just below.

I hope it helped you ! 😉

image