[Feature Request] Global Environmental Variables #133
Replies: 11 comments 20 replies
-
I recently came across fragments and extensions - I think an integration of this would be the best way to implement this. Here's my thoughts on how this might end up working:
Since |
Beta Was this translation helpful? Give feedback.
-
You can also use simple With global env then run compose command like this https://docs.docker.com/compose/environment-variables/set-environment-variables/ |
Beta Was this translation helpful? Give feedback.
-
An option to change the data dir would be apreciated since i store my stack under |
Beta Was this translation helpful? Give feedback.
-
I use OMV and the compose plugin, which is very nice, but I like new things as well, so I'm enjoying Dockge. But I am missing the global env file I have with the compose plugin, so as mrTheoW mentions, I have my most used directories in there, TZ, PUID etc, things that don't really change. I'd quite like to create a global env file, stored either in the root of the stacks directory, or wherever really, and then an option in the settings to state the path, and perhaps a checkbox to state a global env file is available, or if it's easier have a 0 byte file auto created and called every time Dockge does and up. |
Beta Was this translation helpful? Give feedback.
-
I've been using the .env file in the same folder as compose.yml and it's working well. Would be nice to be able to quickly edit that in the interface along with the compose file. |
Beta Was this translation helpful? Give feedback.
-
putting in a vote for this. |
Beta Was this translation helpful? Give feedback.
-
I was rearranging my stacks and now I really want this... I'm going to implement this @louislam and you can decide if you accept it. Might be a few days or the weekend though. |
Beta Was this translation helpful? Give feedback.
-
for the interface maybe take inspiration from yacht project , it will be better if you can create new veriables |
Beta Was this translation helpful? Give feedback.
-
I would also love this feature. I have many containers that share certain env variables and it's tedious to always copy / paste them into individual stack configs and repeat the process if values change. |
Beta Was this translation helpful? Give feedback.
-
Thank you @louislam for the nice project. This is immensely useful ! |
Beta Was this translation helpful? Give feedback.
-
Any progress on this? Much needed feature! |
Beta Was this translation helpful? Give feedback.
-
It would be awesome to be able to set some global env. variables.
Like things that doesn't change as:
It would be nice to be able to name a variable and give it a value so the variable could be used in the stacks / containers.
Beta Was this translation helpful? Give feedback.
All reactions