Updated docker script to wait for services to be properly available