Here we are going to learn about to the stopping command for Docker-Compose. 

Compose tool is used to define and run multi-container in Docker applications. With Compose, we can define the services that need to run in a YAML file. 

Uses:

In multi-container setup we have to define the priority of the containers to the other containers. This will help us for exellent development and testing environments without polluting our host or client system.

The default filename is docker-compose.yml. We are also use the different file name.

For starting the docker-compose use the command as shown below:

docker-compose -f docker-compose-test.yml up


For stopping the docker-com[pose we must run the docker-compose down command with the same flags that when we started the containers.

The below command is used to stop the docker-compose file after starting up.

docker-compose -f docker-compose-test.yml down