Add option to control environment variables from a .env file and option to add labels for Traefik #16
Replies: 6 comments 1 reply
-
With you on the env_file parameter. Even nicer would be the ability to edit said env from the interface if an env_file has been defined for a certain container. |
Beta Was this translation helpful? Give feedback.
-
Maybe I don't understand this (and because I'm curious), could you explain why there is a need for "specify Environment Variables explicitly or use a .env file" when compose already handles environment variables precedence?
The |
Beta Was this translation helpful? Give feedback.
-
If we could provide a custom template for the stack, we could add any label we needed, then just have dockage fill in the template with things like the stack name, service name, service image... |
Beta Was this translation helpful? Give feedback.
-
I've just found this project and like what I see, I'm using OMV (Open media vault) and use the Compose plugin, and 1 feature I really like is the 'global' env file, where I store appdata, tz etc ... This means just setting once a load of common environment variables, and just use the '$var' name in my compose file. |
Beta Was this translation helpful? Give feedback.
-
I would love to see the .env file editable in the UI, handy for things like immich that relies on it. |
Beta Was this translation helpful? Give feedback.
-
Gonna add that for Managing a docker installation with Dockge that is using traefik you currently need to manually edit the docker-compose.yaml for adding the labels and also accessing the server via ssh to place/edit the per stack .env file. There are however different approaches as to how people might organize their servers (complete stack for the whole server vs. one stack for every application). Example part of compose: (This could also be nice if you could copy this from some kind of template, since it stays the same for most containers (exceptions do exists though))
Example .env:
|
Beta Was this translation helpful? Give feedback.
-
It would be nice to have the option to choose if we want to specify Environment Variables explicitly or use a .env file and we just need to write the path of the .env file to use.
Also 2nd suggestion would be to add a way to add labels for us Traefik users.
Beta Was this translation helpful? Give feedback.
All reactions