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

Add support for COMPOSE_FILE environment variable #53

Open
Laski opened this issue Nov 18, 2020 · 1 comment
Open

Add support for COMPOSE_FILE environment variable #53

Laski opened this issue Nov 18, 2020 · 1 comment

Comments

@Laski
Copy link

Laski commented Nov 18, 2020

Is your feature request related to a problem? Please describe.
In order to specify different docker-compose.yml files, it would be nice that blimp supports the environment variables that docker-compose uses, specifically the COMPOSE_FILE environment variable.

Describe the solution you'd like
When the COMPOSE_FILE environment variable is set, blimp uses it to find the Compose file(s).
This probably also implies adding support for multiple Compose files, because COMPOSE_FILE may specify many files concatenated with :.

Additional context
Probably adding CLI support would be nice too (docker-compose -f file.yaml).

@kklin
Copy link
Member

kklin commented Nov 20, 2020

This should be pretty straightforward to add, if you're down to take a crack at it.

There's this common function that's used to get the list of compose files to load. So you could just add a check in that function to lookup the value of COMPOSE_FILE.

Probably adding CLI support would be nice too (docker-compose -f file.yaml).

Does the -f flag for blimp already cover that? Or are you imagining a different use case?

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

No branches or pull requests

2 participants