Reputation: 419
I have multiple docker files in a directory. When I execute
docker-compose up
which yaml
file will be executed?
Thanks.
Upvotes: 0
Views: 578
Reputation: 32156
If you have a file named docker-compose.yml, it will be used,
Extract from
docker-compose help
you have
Options:
-f, --file FILE Specify an alternate compose file (default: docker-compose.yml)
so you can specify another file, something like
docker-compose -f my_file.yml up
Upvotes: 4