Use the extended syntax for the ports.
This commit is contained in:
parent
ca6d5d60b0
commit
d2aee3bf20
|
@ -16,6 +16,7 @@ shinyproxy_conf_dir: '{{ shinyproxy_install_dir }}'
|
|||
shinyproxy_log_dir: /var/log/shinyproxy
|
||||
shinyproxy_bind_address: 127.0.0.1
|
||||
shinyproxy_http_port: 8080
|
||||
shinyproxy_docker_http_port_mode: 'host'
|
||||
shinyproxy_heartbeat_rate: 10000
|
||||
shinyproxy_heartbeat_timeout: 60000
|
||||
shinyproxy_undertow_loglevel: 'INFO'
|
||||
|
|
|
@ -17,9 +17,15 @@ services:
|
|||
{% if shinyproxy_container_backend == 'docker' %}
|
||||
build: .
|
||||
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 }}:9090
|
||||
- target: 9090
|
||||
published: {{ shinyproxy_prometheus_port }}
|
||||
protocol: tcp
|
||||
mode: 'host'
|
||||
{% endif %}
|
||||
{% else %}
|
||||
image: {{ shinyproxy_docker_image }}
|
||||
|
|
Loading…
Reference in New Issue