CodingGarden / entropychat.app

A discord clone made by the Coding Garden Community.
https://entropychat.app
103 stars 37 forks source link

Fix docker so the app waits for mongo #39

Open brilvio opened 4 years ago

brilvio commented 4 years ago

Sorry to hijack and fix the issue, but I had this problem before.

Now looking at the issue it has has nothing to do with waiting for mongo to start, but still you can see the implementation here.

It uses this implementation https://github.com/ufoscout/docker-compose-wait/

w3cj commented 4 years ago

Fails to connect and then kills api container on Mac. Tried specifying some env vars to change the timeout / max failures, but no luck.

brilvio commented 4 years ago

I will test on linux to see if works and get back to you.

brilvio commented 4 years ago

Fails to connect and then kills api container on Mac. Tried specifying some env vars to change the timeout / max failures, but no luck.

It was failing for me as well, it was connecting but then it would exit out of the container.

I updated the version of docker-compose-wait and changed the CMD line on Dockerfile the old way only run the /wait command, sorry for not testing I was using windows when I made the changes.

Now I did test on linux Ubuntu and it is working as intended.