bxcodec / go-clean-arch

Go (Golang) Clean Architecture based on Reading Uncle Bob's Clean Architecture
MIT License
9.06k stars 1.19k forks source link

chore: makes command make run reliable #24

Closed riuvshin closed 5 years ago

riuvshin commented 5 years ago

make run may fail in some cases where mysql startup time takes a little longer time than usual. depends_on directive guarantees only that mysql container will be started first and web will start second and sometimes when web is trying to connect to mysql, mysql is still not ready for connections. So health-check will first wait for mysql up and ready for connections and only then web container will launched.

btw, thanks for the great example!