Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search for .config/docker-compose.yml #11640

Open
bersace opened this issue Mar 20, 2024 · 2 comments
Open

Search for .config/docker-compose.yml #11640

bersace opened this issue Mar 20, 2024 · 2 comments

Comments

@bersace
Copy link

bersace commented Mar 20, 2024

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

@ndeloof
Copy link
Contributor

ndeloof commented Mar 26, 2024

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"

@Xeckt
Copy link

Xeckt commented Mar 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants