Why is there no "Environment" tab for Compose Type: Stacks #1116
-
Hi there 👋 I was wondering why there is no "Environment" tab when you create a Docker Compose Service with the "Stack" type. I know I can set environment variables for each service as yaml, but if there are many services which share the same variables, having the "Environment" seems very useful. Loving this project so far! ❤️ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thanks, the reason is because in docker stack there is no way to use environment variables, however using the docker cli there is a way to add environment variables, there is an open PR #637 regarding this issue, I haven't had time to fix all the cases, as in the current PR several things are broken regarding build paths and creating files, I hope to fix this problem soon! |
Beta Was this translation helpful? Give feedback.
-
#637 has landed. So this discussion can be closed. |
Beta Was this translation helpful? Give feedback.
Thanks, the reason is because in docker stack there is no way to use environment variables, however using the docker cli there is a way to add environment variables, there is an open PR #637 regarding this issue, I haven't had time to fix all the cases, as in the current PR several things are broken regarding build paths and creating files, I hope to fix this problem soon!