Docker Community Forums

Share and learn in the Docker community.

Stack per cluster


(Mikus) #1

Is it possible to configure that particular stack is deployed on the particular cluster? I would like to have to stacks and wanted to deploy them separately on different clusters.


#2

This is certainly possible, by design. First add labels to your node clusters, e.g. “nightly”. Then, in your stack, add the following configuration:

  tags:
    - nightly

This means the stack is going to deploy its services where nodes are at least labeled with “nightly”


(Mikus) #3

Thank you for this advice. Indeed, it works!