Lets say I am running a stack defined in a compose file using swarm over a large numbr of worker nodes. Lets says also that I am using the global mode for each service; so each node is running the full stack.
What would be the best approach to handle the resource(s) that need to be unique per running instance (notably, but not limited, secrets, or labels, or storage, or whatever). You can change the compose file, or create individual ones, on the fly. Or use the CLI/API. I suspect that the better approach is the later but is there a consensus on this? Am I wrong?