-
Notifications
You must be signed in to change notification settings - Fork 0
/
5p.yml
81 lines (75 loc) · 1.24 KB
/
5p.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.9'
services:
db:
image: db
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 10
window: 60s
networks:
- net
ports:
- "5003:5003"
volumes:
- db:/db
weather:
image: weather
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 60s
networks:
- net
ports:
- "5001:5001"
volumes:
- db:/db
worker:
image: worker
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 60s
depends_on:
- weather
networks:
- net
ports:
- "5002:5002"
volumes:
- db:/db
webserver:
image: webserver
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
window: 60s
depends_on:
- worker
networks:
- net
ports:
- "8080:8080"
volumes:
- db:/db
volumes:
db:
networks:
net:
driver: overlay