Fix the docker compose template.

This commit is contained in:
Andrea Dell'Amico 2021-04-18 21:18:14 +02:00
parent d2aee3bf20
commit 522da0c14e
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 9 additions and 3 deletions

View File

@ -20,7 +20,7 @@ services:
- target: {{ shinyproxy_http_port }}
published: :{{ shinyproxy_http_port }}
protocol: tcp
mode: '{{ shinyproxy_docker_http_port_mode }}'
mode: 'host'
{% if shinyproxy_expose_prometheus and shinyproxy_version is version_compare('2.5.0', '>=') %}
- target: 9090
published: {{ shinyproxy_prometheus_port }}
@ -31,9 +31,15 @@ services:
image: {{ shinyproxy_docker_image }}
{% if not shinyproxy_docker_swarm_behind_haproxy %}
ports:
- {{ shinyproxy_http_port }}:{{ shinyproxy_http_port }}
- target: {{ shinyproxy_http_port }}
published: :{{ shinyproxy_http_port }}
protocol: tcp
mode: '{{ shinyproxy_docker_http_port_mode }}'
{% if shinyproxy_expose_prometheus and shinyproxy_version is version_compare('2.5.0', '>=') %}
- {{ shinyproxy_prometheus_port }}:{{ shinyproxy_prometheus_port }}
- target: 9090
published: {{ shinyproxy_prometheus_port }}
protocol: tcp
mode: 'host'
{% endif %}
{% endif %}
{% endif %}