Control startup and shutdown order in Compose

How to control service startup and shutdown order in Docker Compose