File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ services:
9
9
- influxdb_business
10
10
- influxdb_gf
11
11
restart : always
12
+ deploy :
13
+ placement :
14
+ constraints :
15
+ - " node.role==manager"
12
16
13
17
grafana :
14
18
image : grafana/grafana:latest
@@ -25,6 +29,10 @@ services:
25
29
- ./Grafana/dashboards:/etc/grafana/provisioning/dashboards
26
30
networks :
27
31
- influxdb_gf
32
+ deploy :
33
+ placement :
34
+ constraints :
35
+ - " node.role==manager"
28
36
29
37
auth-server :
30
38
image : mihneadinik/auth-server:latest
@@ -35,14 +43,17 @@ services:
35
43
DB_HOSTNAME : mongo
36
44
DB_NAME : clients_db
37
45
DB_PORT : 27017
38
- # restart: always
39
46
ports :
40
47
- " 6001:6001"
41
48
depends_on :
42
49
- mongo
43
50
networks :
44
51
- mongo-auth
45
52
- kong-auth
53
+ deploy :
54
+ replicas : 3
55
+ restart_policy :
56
+ condition : on-failure
46
57
47
58
io-service :
48
59
image : mihneadinik/io-service:latest
@@ -60,6 +71,10 @@ services:
60
71
networks :
61
72
- mongo-io
62
73
- business-io
74
+ deploy :
75
+ replicas : 3
76
+ restart_policy :
77
+ condition : on-failure
63
78
64
79
business-service :
65
80
image : mihneadinik/business-service:latest
@@ -75,6 +90,10 @@ services:
75
90
- business-io
76
91
- influxdb_business
77
92
- kong-business
93
+ deploy :
94
+ replicas : 3
95
+ restart_policy :
96
+ condition : on-failure
78
97
79
98
mongo :
80
99
image : mongo:latest
@@ -92,6 +111,10 @@ services:
92
111
- mongo-network
93
112
ports :
94
113
- " 27017:27017"
114
+ deploy :
115
+ placement :
116
+ constraints :
117
+ - " node.role==manager"
95
118
96
119
97
120
mongo-gui :
@@ -107,6 +130,10 @@ services:
107
130
ME_CONFIG_MONGODB_SERVER : mongo
108
131
networks :
109
132
- mongo-network
133
+ deploy :
134
+ placement :
135
+ constraints :
136
+ - " node.role==manager"
110
137
111
138
kong :
112
139
image : kong:latest
@@ -128,6 +155,12 @@ services:
128
155
networks :
129
156
- kong-business
130
157
- kong-auth
158
+ deploy :
159
+ placement :
160
+ constraints :
161
+ - " node.role==manager"
162
+ restart_policy :
163
+ condition : on-failure
131
164
132
165
volumes :
133
166
mongo_data : {}
You can’t perform that action at this time.
0 commit comments