Configure shinyproxy to use the haproxy network

This commit is contained in:
Andrea Dell'Amico 2020-10-12 17:24:02 +02:00
parent 7b6241674f
commit b83bd00624
1 changed files with 7 additions and 2 deletions

View File

@ -12,8 +12,9 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- {{ shinyproxy_as_docker_src_dir }}/application.yml:/opt/shinyproxy/application.yml:ro
# networks:
# - {{ shinyproxy_docker_network }}
networks:
- {{ shinyproxy_docker_network }}
- haproxy-public
{% if shinyproxy_container_backend == 'docker-swarm' %}
deploy:
mode: replicated
@ -32,3 +33,7 @@ services:
driver: 'journald'
{% endif %}
networks:
{{ shinyproxy_docker_network }}:
haproxy-public:
external: True