When swarm, force the ports mode to ingress.
This commit is contained in:
parent
14ebbd95f6
commit
47c4934841
|
@ -20,12 +20,12 @@ services:
|
||||||
- target: {{ shinyproxy_http_port }}
|
- target: {{ shinyproxy_http_port }}
|
||||||
published: {{ shinyproxy_http_port }}
|
published: {{ shinyproxy_http_port }}
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
mode: 'host'
|
mode: '{{ shinyproxy_docker_http_port_mode }}'
|
||||||
{% if shinyproxy_expose_prometheus and shinyproxy_version is version_compare('2.5.0', '>=') %}
|
{% if shinyproxy_expose_prometheus and shinyproxy_version is version_compare('2.5.0', '>=') %}
|
||||||
- target: 9090
|
- target: 9090
|
||||||
published: {{ shinyproxy_prometheus_port }}
|
published: {{ shinyproxy_prometheus_port }}
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
mode: 'host'
|
mode: '{{ shinyproxy_docker_http_port_mode }}'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
image: {{ shinyproxy_docker_image }}
|
image: {{ shinyproxy_docker_image }}
|
||||||
|
@ -34,12 +34,12 @@ services:
|
||||||
- target: {{ shinyproxy_http_port }}
|
- target: {{ shinyproxy_http_port }}
|
||||||
published: {{ shinyproxy_http_port }}
|
published: {{ shinyproxy_http_port }}
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
mode: '{{ shinyproxy_docker_http_port_mode }}'
|
mode: 'ingress'
|
||||||
{% if shinyproxy_expose_prometheus and shinyproxy_version is version_compare('2.5.0', '>=') %}
|
{% if shinyproxy_expose_prometheus and shinyproxy_version is version_compare('2.5.0', '>=') %}
|
||||||
- target: 9090
|
- target: 9090
|
||||||
published: {{ shinyproxy_prometheus_port }}
|
published: {{ shinyproxy_prometheus_port }}
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
mode: 'host'
|
mode: 'ingress'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue