version: '3.6' services: shinyproxy: build: . volumes: - /var/run/docker.sock:/var/run/docker.sock #ports: # - '{{ shinyproxy_http_port }}':'{{ shinyproxy_http_port }}' expose: - "{{ shinyproxy_http_port }}" networks: - '{{ shinyproxy_docker_network }}' deploy: mode: replicated replicas: {{ shinyproxy_docker_swarm_replicas }} endpoint_mode: dnsrr placement: constraints: [node.role == manager] restart_policy: condition: on-failure delay: 5s max_attempts: 3 window: 120s {% if docker_log_to_journal %} logging: driver: 'journald' {% endif %} networks: {{ shinyproxy_docker_network }}: driver: overlay attachable: true