version: '3.6' services: conductor-server: environment: - CONFIG_PROP=conductor-swarm-config.properties image: nubisware/conductor-server networks: - conductor-network ports: - "8080:8080" depends_on: - elasticsearch - dynomite1 - dynomite2 deploy: mode: replicated replicas: 2 #endpoint_mode: dnsrr placement: constraints: [node.role == worker] restart_policy: condition: on-failure delay: 5s max_attempts: 3 window: 120s configs: - source: swarm-config target: /app/config/conductor-swarm-config.properties logging: driver: "journald" conductor-ui: environment: - WF_SERVER=http://conductor-server:8080/api/ image: nubisware/conductor-ui networks: - conductor-network ports: - "5000:5000" deploy: mode: replicated replicas: 2 #endpoint_mode: dnsrr placement: constraints: [node.role == worker] restart_policy: condition: on-failure delay: 5s max_attempts: 3 window: 120s networks: conductor-network: configs: swarm-config: file: ./conductor-swarm-config.properties