conductor-setup/ansible/roles/conductor/templates/conductor-swarm.yaml.j2

56 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-10-27 15:46:46 +01:00
version: '3.6'
services:
conductor-server:
environment:
- CONFIG_PROP={{ conductor_config }}
image: nubisware/conductor-server
networks:
- {{ conductor_network }}
ports:
- "8080:8080"
deploy:
mode: replicated
replicas: {{ conductor_replicas }}
#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_config }}
2020-10-27 15:46:46 +01:00
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: {{ conductor_replicas }}
#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_config }}