This repo tackles the issue of controlling service startup order in Docker Compose.
See more details here.
satrapu/jdbc-with-docker
Control container startup order in Docker Compose when running a Java 8 console application reading data from a MySQL database.
JavaApache-2.0