https://github.com/docker/docker/pull/27995 added templating features for swarm mode, but they were not documented yet. The docs should be updated to document the templating, and include examples on how / when to use them