-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 920 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3.4"
services:
workers:
image: lraraujo/brams:5.3
user: root
deploy:
replicas: 3
restart_policy:
condition: on-failure
placement:
preferences:
- spread: node.labels.datacenter
volumes:
- ./datain:/root/bin/datain
- ./dataout:/root/bin/dataout
- ./shared_datain:/root/bin/shared_datain
networks:
- bramsnet
master:
image: lraraujo/brams:5.3
user: root
deploy:
mode:
global
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == manager
ports:
- published: 2022
target: 22
mode: host
volumes:
- ./datain:/root/bin/datain
- ./dataout:/root/bin/dataout
- ./shared_datain:/root/bin/shared_datain
networks:
- bramsnet
networks:
bramsnet:
driver: overlay
attachable: true