Create the network used by shinyproxy with a dedicated task

This commit is contained in:
Andrea Dell'Amico 2020-10-08 13:07:33 +02:00
parent 5b7fc6145b
commit 984bc6f698
2 changed files with 6 additions and 4 deletions

View File

@ -34,6 +34,12 @@
- name: Manage the composition of shinyproxy as a docker swarm stack
block:
- name: Create the overlay network that will be used by shinyproxy
docker_network:
name: '{{ shinyproxy_docker_network }}'
driver: overlay
scope: swarm
- name: Install the docker compose file
template: src=shinyproxy-docker-compose.yml.j2 dest={{ shinyproxy_as_docker_src_dir }}/docker-shinyproxy-stack.yml

View File

@ -32,7 +32,3 @@ services:
driver: 'journald'
{% endif %}
networks:
{{ shinyproxy_docker_network }}:
driver: overlay
attachable: true