-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
Consider stopping use of environment variables to communicate with containers #250
Comments
Can you expand on specifically what is meant by "Environment specification still there for custom configuration of custom containers."? As I read that you are just advocating for reducing the number of env vars we use, and not completely removing them? |
I'm suggesting that end users could use environment variables to deliver info/config to their custom containers, providing them a simple hack for configuration, but we would not populate any config via env in our standard config. |
So, the heart of this seems to be whether or not to support user customization of our standard (i.e. web/DB) config? |
No, I don't agree with that @beeradb - I was thinking we would support user customization of everything. But the standard things that we know about in advance (for our containers) would be done with yaml. Environment variables would just be an escape hatch for user customization of special containers. |
I see. No opposition to that proposal in theory. I think what would help color this conversation is if we could identify the specific environment variables that we feel are useful as an "Escape hatch" vs the ones which we feel should be removed. From there, our next steps could be:
I agree we most likely have more than we need, but I haven't looked at it with a critical eye recently. And even if we find we do need 100% of what's there, documenting them would still be a very positive step. |
I took the liberty of updating the title, I hope the proposed next steps work for you. Feel free to change back if they don't. |
I was saying that users could create any environment variable they wanted and use them in the environment section, and that we would use none for our purposes. So we would then not use:
|
New title isn't accurate given what I think I'm after ;) Because I'm saying get rid of all of them (but support that mechanism for users) |
I edited the OP and title just a bit, hoping to narrow this more. It's only about the |
Updating labels because I'm not fully sure I understand the implications and the priority. |
This isn't happening right now, and is even more entrenched, so closing at this point. |
What happened (or feature request):
We use both straight structured yaml in our docker-compose.yml and also free-form environment variables (in the
environment:
section of each container). It's (probably) hard to understand for the end user that may want to edit. For example, we have VIRTUAL_PORT and TCP_PORT as environment variables and the a yaml "-ports" section.What you expected to happen:
environment:
specification should still be there for custom configuration of custom containers.How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
Related source links or issues:
The text was updated successfully, but these errors were encountered: