2022-06-15 15:35:18 +02:00
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
2023-12-11 09:54:14 +01:00
|
|
|
image: postgres:14
|
2022-06-15 15:35:18 +02:00
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=conductor
|
|
|
|
- POSTGRES_PASSWORD=conductor
|
|
|
|
volumes:
|
2022-07-25 11:17:17 +02:00
|
|
|
- pg_db_data:/var/lib/postgresql/data
|
2022-06-15 15:35:18 +02:00
|
|
|
networks:
|
|
|
|
- conductor-network
|
|
|
|
healthcheck:
|
|
|
|
test: timeout 5 bash -c 'cat < /dev/null > /dev/tcp/localhost/5432'
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 12
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
|
|
|
delay: 5s
|
|
|
|
window: 120s
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
|
|
|
logging:
|
|
|
|
driver: "journald"
|
|
|
|
|
|
|
|
es:
|
|
|
|
image: elasticsearch:7.6.2
|
|
|
|
environment:
|
|
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx1024m"
|
|
|
|
- transport.host=0.0.0.0
|
|
|
|
- discovery.type=single-node
|
|
|
|
- xpack.security.enabled=false
|
2023-12-11 09:54:14 +01:00
|
|
|
volumes:
|
|
|
|
- es_data:/usr/share/elasticsearch/data
|
2022-06-15 15:35:18 +02:00
|
|
|
networks:
|
|
|
|
- conductor-network
|
|
|
|
healthcheck:
|
|
|
|
test: timeout 5 bash -c 'cat < /dev/null > /dev/tcp/localhost/9300'
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 12
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
|
|
|
delay: 5s
|
|
|
|
window: 120s
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
|
|
|
logging:
|
|
|
|
driver: "journald"
|
|
|
|
|
|
|
|
conductor-server:
|
|
|
|
environment:
|
|
|
|
- CONFIG_PROP=config.properties
|
2022-07-25 11:17:17 +02:00
|
|
|
image: "nubisware/conductor-server3:pre"
|
2022-06-15 15:35:18 +02:00
|
|
|
networks:
|
|
|
|
- conductor-network
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
|
|
|
delay: 5s
|
|
|
|
window: 120s
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
|
|
|
logging:
|
|
|
|
driver: "journald"
|
|
|
|
|
|
|
|
pep:
|
2022-07-25 11:17:17 +02:00
|
|
|
image: "nubisware/conductor-frontend:pre"
|
2022-06-15 15:35:18 +02:00
|
|
|
networks:
|
|
|
|
- conductor-network
|
|
|
|
- haproxy-public
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
endpoint_mode: dnsrr
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
|
|
|
delay: 5s
|
|
|
|
window: 120s
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
|
|
|
environment:
|
2022-07-25 11:17:17 +02:00
|
|
|
pep_credentials: ${pep_credentials}
|
|
|
|
|
|
|
|
workers:
|
2022-06-15 15:35:18 +02:00
|
|
|
environment:
|
|
|
|
CONDUCTOR_SERVER: http://conductor-server:8080/api/
|
|
|
|
CONDUCTOR_HEALTH: http://conductor-server:8080/health
|
2022-07-25 11:17:17 +02:00
|
|
|
worker_plugins: "Shell Eval Mail HttpBridge"
|
|
|
|
smtp_pass: ${smtp_pass}
|
2022-09-30 16:56:21 +02:00
|
|
|
smtp_user: ${smtp_user}
|
2022-07-25 11:17:17 +02:00
|
|
|
image: 'nubisware/nubisware-conductor-worker-py-d4s'
|
|
|
|
networks:
|
|
|
|
- conductor-network
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 2
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
|
|
|
delay: 5s
|
|
|
|
window: 120s
|
2023-12-11 09:54:14 +01:00
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
2022-07-25 11:17:17 +02:00
|
|
|
logging:
|
|
|
|
driver: "journald"
|
|
|
|
|
|
|
|
pyrestworkers:
|
|
|
|
environment:
|
|
|
|
CONDUCTOR_SERVER: http://conductor-server:8080/api/
|
|
|
|
CONDUCTOR_HEALTH: http://conductor-server:8080/health
|
|
|
|
worker_plugins: Http
|
|
|
|
image: 'nubisware/nubisware-conductor-worker-py-d4s'
|
2022-06-15 15:35:18 +02:00
|
|
|
networks:
|
|
|
|
- conductor-network
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 2
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
|
|
|
delay: 5s
|
|
|
|
window: 120s
|
2023-12-11 09:54:14 +01:00
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
2022-06-15 15:35:18 +02:00
|
|
|
logging:
|
|
|
|
driver: "journald"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
conductor-network:
|
|
|
|
haproxy-public:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
pg_db_data:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: nfs4
|
|
|
|
o: "nfsvers=4,addr=146.48.123.250,rw"
|
2022-07-25 11:17:17 +02:00
|
|
|
device: ":/nfs/conductor_pg_pre"
|
2023-12-11 09:54:14 +01:00
|
|
|
es_data:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: nfs4
|
|
|
|
o: "nfsvers=4,addr=146.48.123.250,rw"
|
|
|
|
device: ":/nfs/conductor_es_pre"
|