Distinguish the network name between docker and docker-swarm

This commit is contained in:
Andrea Dell'Amico 2020-10-07 19:45:16 +02:00
parent 3c2d016667
commit f7b885c24b
1 changed files with 4 additions and 2 deletions

View File

@ -71,9 +71,11 @@ proxy:
container-image: {{ app.docker_image }}
container-memory: {{ app.docker_memory | default('2g') }}
{% if shinyproxy_as_docker_service %}
{% if shinyproxy_container_backend == 'docker-swarm' %}
container-network: shinyproxy_{{ shinyproxy_docker_network }}
{% else }
container-network: shinyproxy_{{ shinyproxy_docker_network }}
{% endif %}
{% endif %}
{% if app.groups is defined %}