I\'m new to docker. I\'m trying to create a MongoDB container and a NodeJS container. My file looks:
version: \'2\' services: backend: image: node:5.11
In your backend app, connect to mongodb:27017 instead of 127.0.0.1:27017. Where 'mongodb' is the name of your service within docker-compose.yml.
mongodb:27017
127.0.0.1:27017