This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Make the stack name available in Docker Swarm configuration as an environment variable #6911
Labels
You can continue the conversation there. Go to discussion →
Is your feature request related to a problem? Please describe.
This request is not related to a problem, but is a minor enhancement for the application templating workflow.
For Docker Swarm cluster using a label based load balancer/reverse proxy (such as Traefik) for exposing applications, I need to specify several labels in the Docker Swarm configuration, which looks something like this:
The
$STACK_NAME
variable is used because labels for each stack must be different in order for Traefik to differentiate between stacks.Describe the solution you'd like
We can provide the
STACK_NAME
variable somewhere around here.The code would look something like this:
The variable name can be discussed so that it may not clash with existing users.
PORTAINER_STACK_NAME
is also a viable alternative.Describe alternatives you've considered
For now, I have to specify
STACK_NAME
in theenv
of the App Template file in order for the configuration to interpolate correctly.The text was updated successfully, but these errors were encountered: