33 lines
648 B
YAML
33 lines
648 B
YAML
|
version: '3.6'
|
||
|
|
||
|
services:
|
||
|
base:
|
||
|
environment:
|
||
|
CONDUCTOR_SERVER: http://conductor-dev.int.d4science.net/api
|
||
|
configs:
|
||
|
- source: base-config
|
||
|
target: /app/config.cfg
|
||
|
image: 'nubisware/nubisware-conductor-worker-py-base'
|
||
|
networks:
|
||
|
- conductor-network
|
||
|
deploy:
|
||
|
mode: replicated
|
||
|
replicas: 2
|
||
|
placement:
|
||
|
constraints: [node.role == worker]
|
||
|
restart_policy:
|
||
|
condition: on-failure
|
||
|
delay: 5s
|
||
|
max_attempts: 3
|
||
|
window: 120s
|
||
|
logging:
|
||
|
driver: "journald"
|
||
|
|
||
|
|
||
|
networks:
|
||
|
conductor-network:
|
||
|
|
||
|
configs:
|
||
|
base-config:
|
||
|
file: base-config.cfg
|