diff --git a/templates/portainer-agent-stack.yml.j2 b/templates/portainer-agent-stack.yml.j2 index d4b903e..44aa05f 100644 --- a/templates/portainer-agent-stack.yml.j2 +++ b/templates/portainer-agent-stack.yml.j2 @@ -67,7 +67,10 @@ services: deploy: mode: replicated replicas: 1 +{% if docker_swarm_cluster_haproxy_install %} endpoint_mode: dnsrr + +{% endif %} restart_policy: condition: on-failure delay: 5s