diff --git a/templates/portainer-agent-stack.yml.j2 b/templates/portainer-agent-stack.yml.j2 index fd762ab..8333065 100644 --- a/templates/portainer-agent-stack.yml.j2 +++ b/templates/portainer-agent-stack.yml.j2 @@ -40,7 +40,7 @@ services: portainer: image: portainer/portainer-ce command: -H tcp://tasks.agent:9001 --tlsskipverify -{% if docker_swarm_cluster_haproxy_install %} +{% if not docker_swarm_cluster_haproxy_install %} ports: - target: 9443 @@ -60,7 +60,7 @@ services: - portainer_server_data:/data networks: - {{ docker_swarm_portainer_network }} -{% if docker_swarm_cluster_haproxy_install %} +{% if not docker_swarm_cluster_haproxy_install %} - {{ haproxy_docker_overlay_network }} {% endif %}