Soheila DehghanZadeh
Soheila DehghanZadeh

Reputation: 419

multiple docker files in a directory

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

Answers (1)

user2915097
user2915097

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

Related Questions