A wait script written in python for docker/docker-compose services Tested for now only with python 2.7 and 3.6
python pywait.py string-check --string "Service started" --url "http://whatever.service"
python pywait.py connection --spec tcp:some_service:3306 --spec udp:some_other_service:3306
python pywait.py --retries 15 --timeout 6 --exit-code 124 connection --spec tcp:some_service:3306
python pywait.py --quiet connection --spec tcp:some_service:3306