version: '3.6' services: cdn: image: hub.dev.d4science.org/cdn/cdn:dev networks: - haproxy-public healthcheck: test: curl http://localhost/health interval: 10s timeout: 5s retries: 12 deploy: mode: replicated replicas: 1 endpoint_mode: dnsrr restart_policy: condition: any delay: 5s window: 120s placement: constraints: [node.role == worker] environment: GIT_BRANCH: master GIT_SERVER: https://code-repo.d4science.org/gCubeSystem GIT_REPOSITORY: web-components Authorization: ${cdn_credentials} logging: driver: "journald" networks: haproxy-public: external: true