One replica. Choose betwen mount the configuration file or use it as a config.
This commit is contained in:
parent
f308dc5c0c
commit
89e6897a31
|
@ -26,7 +26,8 @@ shinyproxy_docker_image: 'adellamisti/shinyproxy:latest'
|
||||||
shinyproxy_as_docker_service_name: 'shinyproxy'
|
shinyproxy_as_docker_service_name: 'shinyproxy'
|
||||||
shinyproxy_as_docker_src_dir: /srv/{{ shinyproxy_as_docker_service_name }}_service
|
shinyproxy_as_docker_src_dir: /srv/{{ shinyproxy_as_docker_service_name }}_service
|
||||||
shinyproxy_docker_network: 'shinyproxy'
|
shinyproxy_docker_network: 'shinyproxy'
|
||||||
shinyproxy_docker_swarm_replicas: 2
|
shinyproxy_docker_swarm_replicas: 1
|
||||||
|
shinyproxy_docker_mount_conf_file: True
|
||||||
shinyproxy_docker_log_to_journal: True
|
shinyproxy_docker_log_to_journal: True
|
||||||
# Shinyproxy configuration
|
# Shinyproxy configuration
|
||||||
# docker, docker-swarm, kubernetes
|
# docker, docker-swarm, kubernetes
|
||||||
|
|
|
@ -7,9 +7,11 @@ networks:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ shinyproxy_docker_network }}:
|
{{ shinyproxy_docker_network }}:
|
||||||
|
|
||||||
|
{% if not shinyproxy_docker_mount_conf_file %}
|
||||||
configs:
|
configs:
|
||||||
shinyproxy_conf:
|
shinyproxy_conf:
|
||||||
file: {{ shinyproxy_as_docker_src_dir }}/application.yml
|
file: {{ shinyproxy_as_docker_src_dir }}/application.yml
|
||||||
|
{% endif %}
|
||||||
services:
|
services:
|
||||||
shinyproxy:
|
shinyproxy:
|
||||||
{% if shinyproxy_container_backend == 'docker' %}
|
{% if shinyproxy_container_backend == 'docker' %}
|
||||||
|
@ -21,10 +23,15 @@ services:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
{% if shinyproxy_docker_mount_conf_file %}
|
||||||
|
- {{ shinyproxy_as_docker_src_dir }}/application.yml:{{ shinyproxy_conf_dir }}/application.yml
|
||||||
|
{% endif %}
|
||||||
|
{% if not shinyproxy_docker_mount_conf_file %}
|
||||||
configs:
|
configs:
|
||||||
- source: shinyproxy_conf
|
- source: shinyproxy_conf
|
||||||
target: {{ shinyproxy_conf_dir }}/application.yml
|
target: {{ shinyproxy_conf_dir }}/application.yml
|
||||||
mode: 0400
|
mode: 0400
|
||||||
|
{% endif %}
|
||||||
networks:
|
networks:
|
||||||
- {{ shinyproxy_docker_network }}
|
- {{ shinyproxy_docker_network }}
|
||||||
{% if shinyproxy_container_backend == 'docker-swarm' %}
|
{% if shinyproxy_container_backend == 'docker-swarm' %}
|
||||||
|
|
Loading…
Reference in New Issue