From f468a48ffa1b451778cb20687bd2e252d6ed2304 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 11 Oct 2023 16:40:21 +0200 Subject: [PATCH] Expose the plain http port when enabled. --- templates/haproxy-docker-stack.yml.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 }}