inside-server icon indicating copy to clipboard operation
inside-server copied to clipboard

Fix Docker problem

Open jvcjunior opened this issue 7 years ago • 3 comments

When we execute docker-compose up for the first time, the API container is having trouble to connect to the database because although the DB container is up the MySQL isn't. We need to find a way of creating the API container only after the MySQL is up.

jvcjunior avatar Mar 08 '18 12:03 jvcjunior

Guys, I would like to work on this issue too, ok?

luisguilhermemaia avatar Mar 09 '18 15:03 luisguilhermemaia

Sure! Go ahead!

jvcjunior avatar Mar 09 '18 15:03 jvcjunior

@luisguilhermemaia I found this issue explaining about to wait mysql. In this case the link explain how to work with postgresql. Try to adapt your code for this situation above. https://docs.docker.com/compose/startup-order/

laurindo avatar Mar 12 '18 15:03 laurindo