docker-compose gives you lot of command line options to control the environment, you can see this information by running docker-compose - -help in the command line. We have seen the commands up and down which help setup an environment, in this section we will visit few more helpful commands which provide more granularized control on the environment:
Docker CLI options
Start/stop services
Use the following command to stop all the services within a docker-compose environment:
docker-compose stop
To start the services, use the following command:
docker-compose start
To start/stop any one service within the compose definition suffix the name of service as shown following:
docker-compose start web