Dedicated port for the docker api
This commit is contained in:
parent
451479c8d3
commit
50dc723120
|
@ -32,7 +32,18 @@ services:
|
||||||
{% else %}
|
{% else %}
|
||||||
mode: host
|
mode: host
|
||||||
{% endif %}
|
{% 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:
|
deploy:
|
||||||
{% if docker_swarm_haproxy_installation_type == 'keepalive' or docker_swarm_haproxy_installation_type == 'mesh' %}
|
{% if docker_swarm_haproxy_installation_type == 'keepalive' or docker_swarm_haproxy_installation_type == 'mesh' %}
|
||||||
mode: replicated
|
mode: replicated
|
||||||
|
|
Loading…
Reference in New Issue