MongoDB: Server sockets closed after a few minutes
First a probably silly question, are you replacing all the , , etc placeholders with the actual values from your compose.io database?

If you are already doing that, maybe you can debug the connection using the mongo shell to connect to your DB instances.

If you have local install of mongodb you can use:


  mongo host:port/database-name -u user -ppassword


This is also what compose.io docs recommend for connection debugging https://docs.compose.io/common-questions/how-to-connect-to-mongodb.html