When swarm, force the ports mode to ingress.

This commit is contained in:
Andrea Dell'Amico 2021-04-18 21:26:36 +02:00
parent 14ebbd95f6
commit 47c4934841
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 4 deletions

View File

@ -20,12 +20,12 @@ services:
- target: {{ shinyproxy_http_port }}
published: {{ shinyproxy_http_port }}
protocol: tcp
mode: 'host'
mode: '{{ shinyproxy_docker_http_port_mode }}'
{% if shinyproxy_expose_prometheus and shinyproxy_version is version_compare('2.5.0', '>=') %}
- target: 9090
published: {{ shinyproxy_prometheus_port }}
protocol: tcp
mode: 'host'
mode: '{{ shinyproxy_docker_http_port_mode }}'
{% endif %}
{% else %}
image: {{ shinyproxy_docker_image }}
@ -34,12 +34,12 @@ services:
- target: {{ shinyproxy_http_port }}
published: {{ shinyproxy_http_port }}
protocol: tcp
mode: '{{ shinyproxy_docker_http_port_mode }}'
mode: 'ingress'
{% if shinyproxy_expose_prometheus and shinyproxy_version is version_compare('2.5.0', '>=') %}
- target: 9090
published: {{ shinyproxy_prometheus_port }}
protocol: tcp
mode: 'host'
mode: 'ingress'
{% endif %}
{% endif %}
{% endif %}