Also adds depends_on: db so we can try to make the APP container wait until the DB container (mysql) is ready. If mysql is not ready in time, django will fail to connect.
Other way is to first do
docker-compose up db
wait 2-3 seconds and then do
docker-compose up wasaweb
which is not optimal, we prefer to use only one command.
Also adds
depends_on: db
so we can try to make the APP container wait until the DB container (mysql) is ready. If mysql is not ready in time, django will fail to connect.Other way is to first do
docker-compose up db
wait 2-3 seconds and then do
docker-compose up wasaweb
which is not optimal, we prefer to use only one command.