How to run YML compose file?

ykl
ykl
2 Points
1 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: 42
Total Answered: 1
Total Marked As Answer: 0
Posted On: 13-May-2020 04:01

Share:   fb twitter linkedin
Answers
beginer
beginer
122 Points
41 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