Docker Swarm Unique Custom Hostname for Service in case of scale up

This should work for global services, or replicated services with only one replica as well:

hostname: Trino-Worker-{{.Node.Hostname}}"

Years ago I played around with the template placeholders: