How to run YML compose file?

ykl
ykl
Member
116 Points
5 Posts

How can I run a YML compose file i.e. .yml file on my computer? I've Docker Desktop for Windows and Docker tools but not able figure out how.

Views: 2281
Total Answered: 1
Total Marked As Answer: 1
Posted On: 13-May-2020 04:01

Share:   fb twitter linkedin
Answers
beginer
beginer
Member
1328 Points
43 Posts
         

From your project directory, use following command to run:

docker-compose up

use following command to stop:

docker-compose down

Also, we can use following command when we are executing command from out side of project directory:

docker-compose -f {compose file name} up

docker-compose -f {compose file name} down
Posted On: 15-May-2020 23:49
 Log In to Chat