-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
119 lines (115 loc) · 3.28 KB
/
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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '3.7'
services:
web:
image: strund3r/arscrift-web:latest
networks:
- traefik-public
- default
deploy:
replicas: 3
update_config:
parallelism: 2
delay: 10s
monitor: 2m
failure_action: rollback
rollback_config:
parallelism: 2
delay: 10s
monitor: 2m
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == worker
labels:
- "traefik.http.routers.web.rule=Host(`arscrift.digital`)"
- "traefik.http.routers.web.service=web"
- "traefik.http.services.web.loadbalancer.server.port=82"
- "traefik.http.routers.web.tls.certresolver=leresolver"
- "traefik.http.routers.web.entrypoints=websecure"
dashboard:
image: strund3r/arscrift-dashboard:latest
networks:
- traefik-public
- default
deploy:
replicas: 3
update_config:
parallelism: 2
delay: 10s
monitor: 2m
failure_action: rollback
rollback_config:
parallelism: 2
delay: 10s
monitor: 2m
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == worker
labels:
- "traefik.http.routers.dashboard.rule=Host(`dashboard.arscrift.digital`)"
- "traefik.http.routers.dashboard.service=dashboard"
- "traefik.http.services.dashboard.loadbalancer.server.port=81"
- "traefik.http.routers.dashboard.tls.certresolver=leresolver"
- "traefik.http.routers.dashboard.entrypoints=websecure"
dashboard-new:
image: strund3r/arscrift-dashboard-new:latest
networks:
- traefik-public
- default
deploy:
replicas: 3
update_config:
parallelism: 2
delay: 10s
monitor: 2m
failure_action: rollback
rollback_config:
parallelism: 2
delay: 10s
monitor: 2m
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == worker
labels:
- "traefik.http.routers.dashboard-new.rule=Host(`dashboard-new.arscrift.digital`)"
- "traefik.http.routers.dashboard-new.service=dashboard-new"
- "traefik.http.services.dashboard-new.loadbalancer.server.port=83"
- "traefik.http.routers.dashboard-new.tls.certresolver=leresolver"
- "traefik.http.routers.dashboard-new.entrypoints=websecure"
api:
image: strund3r/arscrift-api:latest
networks:
- traefik-public
- default
deploy:
replicas: 3
update_config:
parallelism: 2
delay: 10s
monitor: 2m
failure_action: rollback
rollback_config:
parallelism: 2
delay: 10s
monitor: 2m
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == worker
labels:
- "traefik.http.routers.api.rule=Host(`api.arscrift.digital`)"
- "traefik.http.routers.api.service=api"
- "traefik.http.services.api.loadbalancer.server.port=8393"
- "traefik.http.routers.api.tls.certresolver=leresolver"
- "traefik.http.routers.api.entrypoints=websecure"
networks:
traefik-public:
external: true
default:
external: false