conductor-setup/stack/conductor-swarm.yaml

60 lines
1.2 KiB
YAML
Raw Normal View History

2020-10-26 13:27:25 +01:00
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