2020-10-27 15:46:46 +01:00
|
|
|
version: '3.6'
|
|
|
|
|
2020-11-04 18:04:23 +01:00
|
|
|
{% set clustered = (cluster_replacement is defined and cluster_replacement) or (cluster_check is defined and cluster_check) %}
|
|
|
|
|
2020-10-27 15:46:46 +01:00
|
|
|
services:
|
|
|
|
conductor-server:
|
|
|
|
environment:
|
|
|
|
- CONFIG_PROP={{ conductor_config }}
|
|
|
|
image: nubisware/conductor-server
|
|
|
|
networks:
|
|
|
|
- {{ conductor_network }}
|
2020-11-04 18:04:23 +01:00
|
|
|
{% if clustered %}
|
2020-11-04 10:52:45 +01:00
|
|
|
- {{ haproxy_docker_overlay_network }}
|
|
|
|
{% endif %}
|
2020-11-04 18:04:23 +01:00
|
|
|
{% if not clustered %}
|
2020-10-27 15:46:46 +01:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2020-11-04 10:52:45 +01:00
|
|
|
{% endif %}
|
2020-10-27 15:46:46 +01:00
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: {{ conductor_replicas }}
|
2020-11-04 18:04:23 +01:00
|
|
|
{% if clustered %}
|
2020-11-04 10:52:45 +01:00
|
|
|
endpoint_mode: dnsrr
|
|
|
|
{% endif %}
|
2020-10-27 15:46:46 +01:00
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
|
|
|
configs:
|
|
|
|
- source: swarm-config
|
2020-10-28 09:38:31 +01:00
|
|
|
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/
|
2021-02-23 09:42:26 +01:00
|
|
|
- AUTH_CONFIG_PATH=/app/config/auth.config
|
2020-10-27 15:46:46 +01:00
|
|
|
image: nubisware/conductor-ui
|
|
|
|
networks:
|
|
|
|
- {{ conductor_network }}
|
2020-11-04 18:04:23 +01:00
|
|
|
{% if clustered %}
|
2020-11-04 10:52:45 +01:00
|
|
|
- {{ haproxy_docker_overlay_network }}
|
|
|
|
{% endif %}
|
2020-11-04 18:04:23 +01:00
|
|
|
{% if not clustered %}
|
2020-10-27 15:46:46 +01:00
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
2020-11-04 10:52:45 +01:00
|
|
|
{% endif %}
|
2021-02-23 09:42:26 +01:00
|
|
|
configs:
|
|
|
|
- source: auth-config
|
|
|
|
target: /app/config/auth.config
|
2020-10-27 15:46:46 +01:00
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: {{ conductor_replicas }}
|
2020-11-04 18:04:23 +01:00
|
|
|
{% if clustered %}
|
2020-11-04 10:52:45 +01:00
|
|
|
endpoint_mode: dnsrr
|
|
|
|
{% endif %}
|
2020-10-27 15:46:46 +01:00
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
|
|
|
|
|
|
|
networks:
|
|
|
|
{{ conductor_network }}:
|
2020-11-04 18:04:23 +01:00
|
|
|
{% if clustered %}
|
2020-11-04 10:52:45 +01:00
|
|
|
{{ haproxy_docker_overlay_network }}:
|
|
|
|
external: True
|
|
|
|
{% endif %}
|
2020-10-27 15:46:46 +01:00
|
|
|
|
|
|
|
configs:
|
|
|
|
swarm-config:
|
|
|
|
file: ./{{ conductor_config }}
|
2021-02-23 09:42:26 +01:00
|
|
|
auth-config:
|
|
|
|
file: ./auth.cfg
|