From fe74fd7b172f73872bf1177ab5f36dc8ee7ec15e Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 26 May 2023 18:11:07 +0200 Subject: [PATCH] Do not use dnsrr when publishing ports. --- templates/portainer-agent-stack.yml.j2 | 3 +++ 1 file changed, 3 insertions(+) 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