Dedicated port for the docker api

This commit is contained in:
Andrea Dell'Amico 2020-10-07 18:36:02 +02:00
parent 451479c8d3
commit 50dc723120
1 changed files with 12 additions and 1 deletions

View File

@ -32,7 +32,18 @@ services:
{% else %}
mode: host
{% endif %}
dns: [127.0.0.11]
{% if docker_swarm_expose_api_via_haproxy %}
- target: {{ docker_swarm_haproxy_swarm_port }}
published: {{ docker_swarm_haproxy_swarm_port }}
protocol: tcp
{% if docker_swarm_haproxy_installation_type == 'mesh' %}
mode: ingress
{% else %}
mode: host
{% endif %}
{% endif %}
dns: [127.0.0.11]
deploy:
{% if docker_swarm_haproxy_installation_type == 'keepalive' or docker_swarm_haproxy_installation_type == 'mesh' %}
mode: replicated