Use dnsrr as endpoint mode when deployed as swarm.
This commit is contained in:
parent
54c2d597a4
commit
0be2fa56e3
|
@ -67,9 +67,7 @@ services:
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: {{ shinyproxy_docker_swarm_replicas }}
|
replicas: {{ shinyproxy_docker_swarm_replicas }}
|
||||||
{% if shinyproxy_docker_swarm_behind_haproxy %}
|
|
||||||
endpoint_mode: dnsrr
|
endpoint_mode: dnsrr
|
||||||
{% endif %}
|
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.role == manager]
|
constraints: [node.role == manager]
|
||||||
restart_policy:
|
restart_policy:
|
||||||
|
|
Loading…
Reference in New Issue