diff --git a/templates/haproxy-docker-stack.yml.j2 b/templates/haproxy-docker-stack.yml.j2 index 54a26c8..b047365 100644 --- a/templates/haproxy-docker-stack.yml.j2 +++ b/templates/haproxy-docker-stack.yml.j2 @@ -45,6 +45,16 @@ services: mode: ingress {% else %} mode: host +{% endif %} +{% if haproxy_docker_swarm_plain_http_listener %} + - target: {{ haproxy_docker_swarm_plain_http_port }} + published: {{ haproxy_docker_swarm_plain_http_port }} + protocol: tcp +{% if docker_swarm_haproxy_installation_type == 'mesh' %} + mode: ingress +{% else %} + mode: host +{% endif %} {% endif %} - target: {{ haproxy_admin_port }} published: {{ haproxy_admin_port }}