You can use depends_on to define startup order. Additionally, implementing a health check in the dependency (like a database) and using condition: service_healthy ensures the dependent service waits until the dependency is fully ready, not just started