I'm new to docker. I'm trying to create a MongoDB container and a NodeJS container. My file looks like this.
It should run
[MongoError: connect ECONNREFUSED 127.0.0.1:27017]
bind_ip = 127.0.0.1
In your backend app, connect to
mongodb:27017 instead of
127.0.0.1:27017. Where 'mongodb' is the name of your container within docker-compose.yml.