version: '3.6' services: pep-rel: image: nginx:stable-alpine networks: - {{ sobigdata_rel_docker_network }} - haproxy-public deploy: replicas: 1 placement: constraints: [node.role == worker] endpoint_mode: dnsrr restart_policy: condition: on-failure delay: 10s window: 120s configs: - source: nginxconf target: /etc/nginx/templates/default.conf.template - source: nginxbaseconf target: /etc/nginx/nginx.conf - source: pep target: /etc/nginx/pep.js networks: {{ sobigdata_rel_docker_network }}: haproxy-public: external: true configs: nginxconf: file: ./nginx.default.conf nginxbaseconf: file: ./nginx.conf pep: file: ./pep.js