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.
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.