Control startup order

How to control service startup and shutdown order in Docker Compose