How to start service only when other service had completed?
This is a supplement to @zooblin ‘s answer Since docker-compose version 1.29, we can do it by condition: service_completed_successfully In your scene, database service start will cost some time, so the migration scripts should be executed after database fully started. And the application service should start after migration scripts executed successfully. the docker-compose.yaml may be … Read more