DEV Community

Discussion on: Wait for MongoDB, Postgres or MySql to start on Docker

Collapse
 
dmfay profile image
Dian Fay

Very nice! I've used wait-for-it.sh but the environment variable parsing makes this that little bit more convenient.

Collapse
 
wkrea profile image
wkrea

Hi.

Please let me know, are you using Docker for Windows? Or Linux?

Thanks a lot

Collapse
 
dmfay profile image
Dian Fay

Linux; I haven't used Windows for several years. If your Mongo container is constantly restarting like you mentioned below, that sounds like a problem internal to it. Try starting it outside the docker-compose environment so you can diagnose the problem without all the other stuff getting in the way. Good luck!