Expose the plain http port when enabled.

This commit is contained in:
Andrea Dell'Amico 2023-10-11 16:40:21 +02:00
parent 6c84c9e089
commit f468a48ffa
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 10 additions and 0 deletions

View File

@ -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 }}