Stacks - Add the ability to pull and fill ${___} placeholders in compose files from Git #10898
LeVraiRoiDHyrule
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Hi, do someone know if this is doable ? Maybe I just didn't find how but if it is not possible, that would be an extremely interesting feature to add. Have a nice day. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This already works ! If a file is named |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe
Currently, the only way to fill in ${____} placeholders is to input them manually in Portainer UI. This becomes a problem when pulling a docker-compose.yml from Git, because it is still necessary to input those variables manually.
Adding a .env file in "additional paths", putting the .env in the root of the Git repository or next to the docker-compose.yml doesn't work.
It is currently possible to add a .env file to add env variables to containers, but there is no way to do the same for ${____} placeholders. This blocks from fully editing stacks from Git, re-deploying the full stack from the UI manually is still needed in case I need to change a placeholder value.
Describe the solution you'd like
The best solution would be to have a text field, similar to the one for "additional paths" but for ${____} placeholders. That way we can specify a .env for placeholders for the entire docker-compose.yml.
The current "additional paths" setting would remain unchanged. It would still be possible to add other .env files for adding them to specific containers with
env_file : ____.env
.Describe alternatives you've considered
There is no alternative.
Additional context
This would be an very very useful addition for using Git with Stacks. Without it, there isn't much benefits of using Git with Stacks.
Beta Was this translation helpful? Give feedback.
All reactions