With Docker compose, there is a more idiomatic way to achieve this with zero dependencies using healthchecks[0]. Works well!
I used wait_for_it.sh for the purpose described in the OP until I found healtchecks could be used instead.
[0] https://github.com/peter-evans/docker-compose-healthcheck