compose icon indicating copy to clipboard operation
compose copied to clipboard

Search for .config/docker-compose.yml

Open bersace opened this issue 4 months ago • 2 comments

Description

Hi,

There is an effort to unclutter root directory of project by using a local .config directory: https://github.com/pi0/config-dir. docker-compose.yml is very common at root of project to describe the development environment.

I suggest that docker compose also search for .config/docker-compose.yml.

Regards, Étienne

bersace avatar Mar 20 '24 18:03 bersace

Let's keep this issue open in case this becomes popular, but to be honest I consider Docker Compose is doing way too much magic trying to guess the compose file to be used, better not add yet another "default search path"

ndeloof avatar Mar 26 '24 13:03 ndeloof

I don't really see why this would be necessary when compose has a --file / -f option to specify a compose file.

It's negligible to make this work with a small script or shell aliases in different environments, so I agree with @ndeloof

Xeckt avatar Mar 27 '24 14:03 Xeckt