Service Startup and Docker Compose

Service Startup and Docker Compose

Tasktop uses Docker and Docker Compose for building and deploying products, but sometimes face the problem of services failing to start when dependent services are not available. A solution to this issue was found using a bash hack that uses netcat to wait for a socket accepting connections on the specified host and port. However, this approach adds complexity to Dockerfile and does not provide a hard failure if the service isn't available. Despite its shortcomings, it helps get over the hump of service dependencies.