2020-10-06 19:16:02 +02:00
|
|
|
version: '3.6'
|
2020-09-23 16:40:51 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
shinyproxy:
|
|
|
|
build: .
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2020-10-06 19:16:02 +02:00
|
|
|
#ports:
|
|
|
|
# - '{{ shinyproxy_http_port }}':'{{ shinyproxy_http_port }}'
|
|
|
|
expose:
|
|
|
|
- "{{ shinyproxy_http_port }}"
|
2020-09-23 16:40:51 +02:00
|
|
|
networks:
|
|
|
|
- '{{ shinyproxy_docker_network }}'
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
2020-10-06 19:16:02 +02:00
|
|
|
replicas: {{ shinyproxy_docker_swarm_replicas }}
|
|
|
|
endpoint_mode: dnsrr
|
2020-09-23 16:40:51 +02:00
|
|
|
placement:
|
|
|
|
constraints: [node.role == manager]
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
2020-10-06 19:16:02 +02:00
|
|
|
{% if docker_log_to_journal %}
|
2020-10-06 19:23:29 +02:00
|
|
|
logging:
|
|
|
|
driver: 'journald'
|
2020-10-06 19:16:02 +02:00
|
|
|
{% endif %}
|
2020-09-23 16:40:51 +02:00
|
|
|
|
|
|
|
networks:
|
2020-10-06 19:49:13 +02:00
|
|
|
{{ shinyproxy_docker_network }}:
|
2020-09-23 16:40:51 +02:00
|
|
|
driver: overlay
|
2020-10-06 19:16:02 +02:00
|
|
|
attachable: true
|