-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-swarm.yml
166 lines (165 loc) · 4.43 KB
/
docker-swarm.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: '3.7'
services:
master:
image: hasecuritysolutions/elasticsearch-readonlyrest:6.7.0-gcs
env_file: env/es_master.env
volumes:
- /cloud/cloud_configs/client/HA/elasticsearch/readonlyrest.yml:/usr/share/elasticsearch/config/readonlyrest.yml
networks:
- customer
deploy:
replicas: 3
update_config:
parallelism: 1
delay: 10s
order: stop-first
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == manager]
preferences:
- spread: node.role.manager
ssd1:
image: hasecuritysolutions/elasticsearch-readonlyrest:6.7.0-gcs
env_file: env/es_hot.env
volumes:
- /cloud/cloud_configs/client/HA/elasticsearch/readonlyrest.yml:/usr/share/elasticsearch/config/readonlyrest.yml
- /ssd/HA_ssd:/usr/share/elasticsearch/data
networks:
- customer
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.hostname == cloud01a]
ssd2:
image: hasecuritysolutions/elasticsearch-readonlyrest:6.7.0-gcs
env_file: env/es_hot.env
volumes:
- /cloud/cloud_configs/client/HA/elasticsearch/readonlyrest.yml:/usr/share/elasticsearch/config/readonlyrest.yml
- /ssd/HA_ssd:/usr/share/elasticsearch/data
networks:
- customer
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.hostname == cloud01b]
sata1:
image: hasecuritysolutions/elasticsearch-readonlyrest:6.7.0-gcs
env_file: env/es_warm.env
volumes:
- /cloud/cloud_configs/client/HA/elasticsearch/readonlyrest.yml:/usr/share/elasticsearch/config/readonlyrest.yml
- /sata/HA_sata:/usr/share/elasticsearch/data
networks:
- customer
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.hostname == cloud01a]
sata2:
image: hasecuritysolutions/elasticsearch-readonlyrest:6.7.0-gcs
env_file: env/es_warm.env
volumes:
- /cloud/cloud_configs/client/HA/elasticsearch/readonlyrest.yml:/usr/share/elasticsearch/config/readonlyrest.yml
- /sata/HA_sata:/usr/share/elasticsearch/data
networks:
- customer
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.hostname == cloud01b]
kibana:
image: hasecuritysolutions/kibana-readonlyrest:6.7.0
ports:
- 5601:5601
volumes:
- /cloud/cloud_configs/client/HA/kibana:/opt/kibana/config:ro
networks:
- customer
deploy:
replicas: 2
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == manager]
preferences:
- spread: node.role.manager
cerebro:
image: hasecuritysolutions/cerebro:0.8.3
volumes:
- /cloud/cloud_configs/client/HA/cerebro/application.conf:/opt/cerebro/conf/application.conf:ro
ports:
- 9000:9000
networks:
- customer
deploy:
replicas: 2
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == manager]
preferences:
- spread: node.role.manager
freq_server:
image: hasecuritysolutions/freq_server:2.0
networks:
- customer
deploy:
replicas: 2
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == worker]
preferences:
- spread: node.role.worker
domain_stats:
image: hasecuritysolutions/domain_stats:2.0
ports:
- 20000:20000
networks:
- customer
deploy:
replicas: 2
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
placement:
constraints: [node.role == worker]
preferences:
- spread: node.role.worker
networks:
customer:
driver: overlay