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

Question: Is it possible to use Docker Compose profiles? #157

Closed
nilcolor opened this issue Nov 9, 2022 · 3 comments
Closed

Question: Is it possible to use Docker Compose profiles? #157

nilcolor opened this issue Nov 9, 2022 · 3 comments

Comments

@nilcolor
Copy link
Contributor

nilcolor commented Nov 9, 2022

There is a handy feature in Docker Compose called "profiles" https://docs.docker.com/compose/profiles/
I tried to use it with dip using combinations of method/run_options but still cannot use profiles. If I understand the code correctly, this is not possible at the moment. Is that correct? Are there any plans to support profiles? I can try to do a PR to support them.

@bibendi
Copy link
Owner

bibendi commented Nov 9, 2022

Hi @nilcolor,
I was also thinking about this feature a few weeks ago. We need to add :profiles to the compose command hash and slightly refactor this file

compose_argv = command[:compose][:run_options].dup

It is on my schedule on this year :)
If you cannot wait, you can implement the feature.

@nilcolor
Copy link
Contributor Author

nilcolor commented Nov 9, 2022

I was thinking along these lines as well. I'll try to suggest a PR in the near future.

@nilcolor
Copy link
Contributor Author

@bibendi thanks for the quick response and rolling out v7.6.0!

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

2 participants