Support more complicated and individual ENV file setups #371
Replies: 3 comments 2 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm working on the global.env feature. Just for clarification about this, do you want the service level .env file to be involved in the interpolation of the compose file per service as it comes up? ie.
Or, just a UI to edit the files referenced and the variables only be passed to the containers via the Or, both? |
Beta Was this translation helpful? Give feedback.
-
Hope I'm not late to the party since the PR #387 was allredy accepted...
and all my .service.env would stay untouched like so:
|
Beta Was this translation helpful? Give feedback.
-
🏷️ Feature Request Type
UI Feature
🔖 Feature description
Support multiple ENV files and keeping them in a subfolder.
✔️ Solution
Edit for clarity - I am referring to managing the env files for the
env_file
part of a service in a compose file here not the ability to place variables in a compose file for interpolation of compose itself on startupIn larger stacks it is common to split the ENV files up into per-container ENV files. this ensures that conflicting variables can be managed and also that variables not required in one image are not passed to another. An example of this would be that Traefik should not know the credentials to login to my SQL backend.
The UI could detect compose files that reference separate ENV files and surface them in the UI this would mean that existing stacks would show up and for new stacks, the existing simple UI would remain and extra ENV file management would only show up if a user typed in a reference to another file.
❓ Alternatives
No response
📝 Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions