Docker compose file and its uses.

796    Asked by KylieHamilton in Devops , Asked on Nov 21, 2019
Answered by Kylie Hamilton

A file which is used to configure/install applications or services within a running container is known as docker compose file. The file ends up with extension “.yaml” .

To execute docker compose file run below command

docker compose up

So, in case you want to build a whole application stack let’s say - apache, php, ,mysql to launch your website then simply mention all the commands as service components in docker compose file and initiate it - the whole container will be up and ready with the application stack services running.

So, its an advantage to use compose file over running individual commands again & again to establish an application stack.



Your Answer

Interviews

Parent Categories