-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker.base.yaml
745 lines (700 loc) · 20 KB
/
docker.base.yaml
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
networks:
ferrum:
volumes:
redis:
redis-intel:
redis-local:
redis-sentinel:
redis-intel-sentinel:
es:
ferrum:
services:
redis:
image: redis:7-bullseye
command:
- /bin/bash
- -c
- |
CONF_FILE=/data/redis.conf
if [ ! -f $$CONF_FILE ];then
cat > $$CONF_FILE << EOF
requirepass ${REDIS_PASS}
masterauth ${REDIS_PASS}
protected-mode yes
daemonize no
tcp-backlog 511
timeout 0
tcp-keepalive 300
maxclients 100000
appendonly yes
dir /data
replica-announce-ip ${CLUSTER_NODE_IP}
replica-announce-port 6379
EOF
else
sed -i "s#^requirepass.*#requirepass ${REDIS_PASS}#g" $$CONF_FILE
sed -i "s#^masterauth.*#masterauth ${REDIS_PASS}#g" $$CONF_FILE
sed -i "s#^replica-announce-ip.*#replica-announce-ip ${CLUSTER_NODE_IP}#g" $$CONF_FILE
fi
redis-server $$CONF_FILE
restart: always
ports:
- ${CLUSTER_NODE_IP}:6379:6379
- ${CLUSTER_NODE_IPW}:6379:6379
deploy:
mode: replicated
replicas: 1
restart_policy:
delay: 5s
placement:
constraints:
- Ferrum_Node=management
networks:
- ferrum
volumes:
- redis:/data
logging:
driver: local
profiles:
- master
redis-sentinel:
image: redis:7-bullseye
command:
- /bin/bash
- -c
- |
CONF_FILE=/data/sentinel.conf
if [ ! -f $$CONF_FILE ];then
echo "" > $$CONF_FILE
echo "protected-mode no" >> $$CONF_FILE
echo "dir /data" >> $$CONF_FILE
echo "sentinel announce-ip ${CLUSTER_NODE_IP}">>$$CONF_FILE
echo "sentinel announce-port 26379">>$$CONF_FILE
echo "sentinel monitor redis ${CLUSTER_REDIS_MASTER} 6379 ${CLUSTER_REDIS_QUORUM}" >> $$CONF_FILE
echo "sentinel auth-pass redis ${REDIS_PASS}" >> $$CONF_FILE
echo "sentinel down-after-milliseconds redis 60000" >> $$CONF_FILE
echo "sentinel failover-timeout redis 180000" >> $$CONF_FILE
echo "sentinel parallel-syncs redis 1" >> $$CONF_FILE
else
sed -i "s#^sentinel announce-ip.*#sentinel announce-ip ${CLUSTER_NODE_IP}#g" $$CONF_FILE
sed -i "s#^sentinel auth-pass redis.*#sentinel auth-pass redis ${REDIS_PASS}#g" $$CONF_FILE
fi
redis_master="${CLUSTER_NODE_PEERS}"
if [[ ! -z $${redis_master} ]] && [[ ${REDIS_HOST} == "redis"* ]];then
echo "starting sentinel"
redis-server $$CONF_FILE --sentinel
else
echo "no redis cluster, closing sentinel"
rm $$CONF_FILE
fi
restart: always
ports:
- ${CLUSTER_NODE_IP}:26379:26379
deploy:
mode: global
restart_policy:
delay: 5s
networks:
- ferrum
volumes:
- redis-sentinel:/data
depends_on:
- redis
logging:
driver: local
profiles:
- master
redis-ha:
image: haproxy:2.8.1-bullseye
command:
- /bin/bash
- -c
- |
CONF_FILE=haproxy.cfg
cat > $$CONF_FILE << EOF
global
log stdout format raw local0
defaults rediscluster
mode tcp
timeout connect 4s
timeout server 30s
timeout client 30s
frontend frontend_redis
bind :7379 name redis
default_backend backend_redis
backend backend_redis
option tcp-check
tcp-check send "auth ${REDIS_PASS}"\r\n
tcp-check expect string +OK
tcp-check send info\ replication\r\n
tcp-check expect string role:master
tcp-check send QUIT\r\n
tcp-check expect string +OK
EOF
echo " server ${CLUSTER_NODE_HOST} ${CLUSTER_NODE_IP}:6379 check inter 3s fall 3 rise 21" >> $$CONF_FILE
peers="${CLUSTER_NODE_PEERS}"
for line in $$peers;do
host=$$(echo "$$line"|cut -d'/' -f1);
ip=$$(echo "$$line"|cut -d'/' -f3);
port=6379
if [ ! -z "$$host" ] && [ ! -z "$$ip" ];then
echo " server $$host $$ip:$$port check inter 3s fall 3 rise 21" >> $$CONF_FILE
fi
done
redis_master="${CLUSTER_NODE_PEERS}"
ferrum_cloud_id="${FERRUM_CLOUD_ID}"
if [ -z "$$ferrum_cloud_id" ] || [ ! -z "$$redis_master" ];then
echo "starting redis-ha"
haproxy -f haproxy.cfg
else
echo "no redis cluster, closing ha"
fi
restart: always
ports:
- ${CLUSTER_NODE_IP}:7379:7379
- ${CLUSTER_NODE_IPW}:7379:7379
deploy:
mode: global
restart_policy:
delay: 5s
networks:
- ferrum
depends_on:
- redis
logging:
driver: local
profiles:
- master
redis-intel:
image: redis:7-bullseye
command:
- /bin/bash
- -c
- |
CONF_FILE=/data/redis.conf
if [ ! -f $$CONF_FILE ];then
cat > $$CONF_FILE << EOF
requirepass ${REDIS_INTEL_PASS}
masterauth ${REDIS_INTEL_PASS}
protected-mode yes
daemonize no
tcp-backlog 511
port 6380
timeout 0
tcp-keepalive 300
maxclients 100000
appendonly yes
dir /data
replica-announce-ip ${CLUSTER_NODE_IP}
replica-announce-port 6380
EOF
else
sed -i "s#^requirepass.*#requirepass ${REDIS_INTEL_PASS}#g" $$CONF_FILE
sed -i "s#^masterauth.*#masterauth ${REDIS_INTEL_PASS}#g" $$CONF_FILE
sed -i "s#^replica-announce-ip.*#replica-announce-ip ${CLUSTER_NODE_IP}#g" $$CONF_FILE
fi
roles="${ROLES}"
peersw="${CLUSTER_NODE_PEERSW}"
roles_count=$$(echo $$roles | grep master | wc -l)
if [ $$roles_count = 0 ];then
ip=$$(echo "$$peersw" | cut -d'/' -f3)
if [ $$(cat $$CONF_FILE | grep replicaof | wc -l) = 0 ];then
echo "replicaof $$ip 6380" >> $$CONF_FILE
echo "replica-priority 0" >> $$CONF_FILE
else
sed -i "s#^replicaof.*#replicaof $$ip 6380#g" $$CONF_FILE
fi
else
sed -i '/^replica-priority/d' $$CONF_FILE
fi
redis-server $$CONF_FILE
restart: always
ports:
- ${CLUSTER_NODE_IP}:6380:6380
- ${CLUSTER_NODE_IPW}:6380:6380
deploy:
mode: replicated
replicas: 1
restart_policy:
delay: 5s
placement:
constraints:
- Ferrum_Node=management
networks:
- ferrum
volumes:
- redis-intel:/data
logging:
driver: local
profiles:
- master
- worker
redis-intel-sentinel:
image: redis:7-bullseye
command:
- /bin/bash
- -c
- |
CONF_FILE=/data/sentinel.conf
if [ ! -f $$CONF_FILE ];then
echo "" > $$CONF_FILE
echo "protected-mode no" >> $$CONF_FILE
echo "dir /data" >> $$CONF_FILE
echo "port 26380" >> $$CONF_FILE
echo "sentinel announce-ip ${CLUSTER_NODE_IP}">>$$CONF_FILE
echo "sentinel announce-port 26380">>$$CONF_FILE
echo "sentinel monitor redis ${CLUSTER_REDIS_INTEL_MASTER} 6380 ${CLUSTER_REDIS_INTEL_QUORUM}" >> $$CONF_FILE
echo "sentinel auth-pass redis ${REDIS_INTEL_PASS}" >> $$CONF_FILE
echo "sentinel down-after-milliseconds redis 60000" >> $$CONF_FILE
echo "sentinel failover-timeout redis 180000" >> $$CONF_FILE
echo "sentinel parallel-syncs redis 1" >> $$CONF_FILE
else
sed -i "s#^sentinel announce-ip.*#sentinel announce-ip ${CLUSTER_NODE_IP}#g" $$CONF_FILE
sed -i "s#^sentinel auth-pass redis.*#sentinel auth-pass redis ${REDIS_INTEL_PASS}#g" $$CONF_FILE
fi
redis_master="${CLUSTER_NODE_PEERS}"
if [[ ! -z $${redis_master} ]] && [[ ${REDIS_HOST} == "redis"* ]];then
echo "starting sentinel"
redis-server $$CONF_FILE --sentinel
else
echo "no redis cluster, closing sentinel"
rm $$CONF_FILE
fi
restart: always
ports:
- ${CLUSTER_NODE_IP}:26380:26380
deploy:
mode: global
restart_policy:
delay: 5s
networks:
- ferrum
volumes:
- redis-intel-sentinel:/data
depends_on:
- redis-intel
logging:
driver: local
profiles:
- master
redis-intel-ha:
image: haproxy:2.8.1-bullseye
command:
- /bin/bash
- -c
- |
CONF_FILE=haproxy.cfg
cat > $$CONF_FILE << EOF
global
log stdout format raw local0
defaults rediscluster
mode tcp
timeout connect 4s
timeout server 30s
timeout client 30s
frontend frontend_redis
bind :7380 name redis
default_backend backend_redis
backend backend_redis
option tcp-check
tcp-check send "auth ${REDIS_INTEL_PASS}"\r\n
tcp-check expect string +OK
tcp-check send info\ replication\r\n
tcp-check expect string role:master
tcp-check send QUIT\r\n
tcp-check expect string +OK
EOF
echo " server ${CLUSTER_NODE_HOST} ${CLUSTER_NODE_IP}:6380 check inter 3s fall 3 rise 21" >> $$CONF_FILE
peers="${CLUSTER_NODE_PEERS}"
for line in $$peers;do
host=$$(echo $$line|cut -d'/' -f1);
ip=$$(echo $$line|cut -d'/' -f3);
if [ ! -z $$host ] && [ ! -z $$ip ];then
echo " server $$host $$ip:6380 check inter 3s fall 3 rise 21" >> $$CONF_FILE
fi
done
redis_master="${CLUSTER_NODE_PEERS}"
ferrum_cloud_id="${FERRUM_CLOUD_ID}"
if [ -z "$$ferrum_cloud_id" ] || [ ! -z "$$redis_master" ];then
echo "starting redis-intel-ha"
haproxy -f haproxy.cfg
else
echo "no redis cluster, closing ha"
fi
restart: always
ports:
- ${CLUSTER_NODE_IP}:7380:7380
- ${CLUSTER_NODE_IPW}:7380:7380
deploy:
mode: global
restart_policy:
delay: 5s
networks:
- ferrum
depends_on:
- redis-intel
logging:
driver: local
profiles:
- master
redis-local:
image: redis:7-bullseye
command:
- /bin/bash
- -c
- |
CONF_FILE=/data/redis.conf
cat > $$CONF_FILE << EOF
requirepass ${REDIS_LOCAL_PASS}
masterauth ${REDIS_LOCAL_PASS}
protected-mode yes
port 6381
daemonize no
tcp-backlog 511
timeout 0
tcp-keepalive 300
maxclients 100000
appendonly yes
dir /data
EOF
redis-server $$CONF_FILE
restart: always
ports:
- ${CLUSTER_NODE_IP}:6381:6381
- ${CLUSTER_NODE_IPW}:6381:6381
deploy:
mode: replicated
replicas: 1
restart_policy:
delay: 5s
networks:
- ferrum
volumes:
- redis-local:/data
logging:
driver: local
profiles:
- master
- worker
es:
image: ${ES_IMAGE}
restart: always
environment:
- ES_JAVA_OPTS=-Xms128m -Xmx1g
- ELASTIC_PASSWORD=${ES_PASS}
- discovery.type=single-node
- xpack.security.enabled=true
- xpack.ml.enabled=false
- network.host=0.0.0.0
- ROLES=${ROLES}
- ES_HOST=${ES_PROXY_HOST}
- ES_USER=${ES_USER}
- ES_PASS=${ES_PASS}
- FERRUM_CLOUD_ID=${FERRUM_CLOUD_ID}
- FERRUM_CLOUD_URL=${FERRUM_CLOUD_URL}
- FERRUM_CLOUD_TOKEN=${FERRUM_CLOUD_TOKEN}
- ES_MULTI_HOST=${ES_MULTI_HOST}
- ES_MULTI_USER=${ES_MULTI_USER}
- ES_MULTI_PASS=${ES_MULTI_PASS}
deploy:
mode: replicated
replicas: 1
restart_policy:
delay: 5s
placement:
constraints:
- Ferrum_Node=management
ports:
- ${CLUSTER_NODE_IP}:9200:9200
- ${CLUSTER_NODE_IPW}:9200:9200
mem_limit: 2073741824
ulimits:
memlock:
soft: -1
hard: -1
networks:
- ferrum
volumes:
- es:/usr/share/elasticsearch/data
logging:
driver: local
profiles:
- master
es-ha:
image: haproxy:2.8.1-bullseye
command:
- /bin/bash
- -c
- |
CONF_FILE=haproxy.cfg
cat > $$CONF_FILE << EOF
global
log stdout format raw local0
defaults escluster
mode tcp
timeout connect 4s
timeout server 30s
timeout client 30s
frontend frontend_es
bind :10200 name es
default_backend backend_es
backend backend_es
EOF
peers="${CLUSTER_ES_PEERS}"
if [ ! -z "$$peers" ];then
backup="";
for line in $$peers;do
host=$$(echo "$$line"|cut -d'/' -f1);
ip=$$(echo "$$line"|cut -d'/' -f2);
if [ ! -z "$$host" ] && [ ! -z "$$ip" ];then
backup_str=""
if [ -z "$$backup" ];then
backup_str="";
else
backup_str="backup"
fi
backup="backup";
echo " server $$host $$ip:9200 check inter 3s fall 20 rise 20 $$backup_str" >> $$CONF_FILE
fi
done
else
echo " server ${CLUSTER_NODE_HOST} ${CLUSTER_NODE_IP}:9200 check inter 3s fall 20 rise 20 " >> $$CONF_FILE
fi
es_peers="${CLUSTER_ES_PEERS}"
if [ ! -z "$$es_peers" ];then
echo "starting es-ha"
haproxy -f haproxy.cfg
else
echo "no es cluster, closing ha"
fi
restart: always
ports:
- ${CLUSTER_NODE_IP}:10200:10200
- ${CLUSTER_NODE_IPW}:10200:10200
deploy:
mode: global
restart_policy:
delay: 5s
networks:
- ferrum
depends_on:
- es
logging:
driver: local
profiles:
- master
ui:
image: "??PRIVATE_REGISTRY/ferrumgate/ui.portal:2.2.0"
restart: always
deploy:
mode: global
restart_policy:
delay: 5s
networks:
- ferrum
logging:
driver: local
profiles:
- master
rest:
image: "??PRIVATE_REGISTRY/ferrumgate/rest.portal:2.2.0"
restart: always
ports:
- ${REST_HTTP_PORT}:8181
- ${REST_HTTPS_PORT}:8443
environment:
- PORT=8181
- REDIS_HOST=${REDIS_PROXY_HOST}
- REDIS_PASS=${REDIS_PASS}
- REDIS_LOCAL_HOST=${REDIS_LOCAL_HOST}
- REDIS_LOCAL_PASS=${REDIS_LOCAL_PASS}
- REDIS_INTEL_HOST=${REDIS_INTEL_PROXY_HOST}
- REDIS_INTEL_PASS=${REDIS_INTEL_PASS}
- BASE_RATE_LIMIT=25
- ENCRYPT_KEY=${ENCRYPT_KEY}
- ES_HOST=${ES_PROXY_HOST}
- ES_USER=${ES_USER}
- ES_PASS=${ES_PASS}
- ES_INTEL_HOST=${ES_PROXY_HOST}
- ES_INTEL_USER=${ES_INTEL_USER}
- ES_INTEL_PASS=${ES_INTEL_PASS}
- LOG_LEVEL=${LOG_LEVEL}
- NODE_ID=${NODE_ID}
- FERRUM_CLOUD_ID=${FERRUM_CLOUD_ID}
- FERRUM_CLOUD_URL=${FERRUM_CLOUD_URL}
- FERRUM_CLOUD_TOKEN=${FERRUM_CLOUD_TOKEN}
- FERRUM_CLOUD_IP=${FERRUM_CLOUD_IP}
- FERRUM_CLOUD_PORT=${FERRUM_CLOUD_PORT}
- CLUSTER_NODE_PUBLIC_KEY=${CLUSTER_NODE_PUBLIC_KEY}
- STATIC_FOLDER=/usr/src/app/web
- UI_HOST=ui:80
- SHARE_PRIVATE_FOLDER=/usr/local/share/ferrumgate/private
- SHARE_PUBLIC_FOLDER=/usr/local/share/ferrumgate/public
deploy:
restart_policy:
delay: 5s
mode: global
depends_on:
- redis-ha
- es-ha
networks:
- ferrum
volumes:
- ferrum:/var/lib/ferrumgate
- /usr/local/share/ferrumgate:/usr/local/share/ferrumgate
logging:
driver: local
profiles:
- master
log:
image: "??PRIVATE_REGISTRY/ferrumgate/job.log:2.2.0"
restart: always
environment:
- REDIS_HOST=${REDIS_PROXY_HOST}
- REDIS_PASS=${REDIS_PASS}
- REDIS_LOCAL_HOST=${REDIS_LOCAL_HOST}
- REDIS_LOCAL_PASS=${REDIS_LOCAL_PASS}
- ENCRYPT_KEY=${ENCRYPT_KEY}
- ES_HOST=${ES_PROXY_HOST}
- ES_USER=${ES_USER}
- ES_PASS=${ES_PASS}
- LOG_LEVEL=${LOG_LEVEL}
- NODE_ID=${NODE_ID}
- MODULE_SYSLOG=true
- MODULE_AUDIT_TO_ES=false
- MODULE_ACTIVITY_TO_ES=false
- MODULE_DEVICE_TO_ES=false
- MODULE_ACTIVITY_SVC_PARSER=false
- FERRUM_CLOUD_ID=${FERRUM_CLOUD_ID}
ports:
- ${CLUSTER_NODE_IP}:9292:9292/udp
- ${CLUSTER_NODE_IP}:9292:9292/tcp
- ${CLUSTER_NODE_IPW}:9292:9292/udp
- ${CLUSTER_NODE_IPW}:9292:9292/tcp
deploy:
mode: replicated
replicas: ${LOG_REPLICAS}
endpoint_mode: vip
restart_policy:
delay: 5s
depends_on:
- redis-ha
networks:
- ferrum
logging:
driver: local
profiles:
- master
log-parser:
image: "??PRIVATE_REGISTRY/ferrumgate/job.log:2.2.0"
restart: always
environment:
- REDIS_HOST=${REDIS_PROXY_HOST}
- REDIS_PASS=${REDIS_PASS}
- REDIS_LOCAL_HOST=${REDIS_LOCAL_HOST}
- REDIS_LOCAL_PASS=${REDIS_LOCAL_PASS}
- ENCRYPT_KEY=${ENCRYPT_KEY}
- ES_HOST=${ES_PROXY_HOST}
- ES_USER=${ES_USER}
- ES_PASS=${ES_PASS}
- LOG_LEVEL=${LOG_LEVEL}
- NODE_ID=${NODE_ID}
- MODULE_SYSLOG=false
- MODULE_AUDIT_TO_ES=true
- MODULE_ACTIVITY_TO_ES=true
- MODULE_DEVICE_TO_ES=true
- MODULE_ACTIVITY_SVC_PARSER=true
- FERRUM_CLOUD_ID=${FERRUM_CLOUD_ID}
deploy:
mode: replicated
replicas: ${LOG_PARSER_REPLICAS}
endpoint_mode: vip
restart_policy:
delay: 5s
networks:
- ferrum
depends_on:
- redis-ha
logging:
driver: local
profiles:
- master
task:
image: "??PRIVATE_REGISTRY/ferrumgate/job.task:2.2.0"
restart: always
environment:
- REDIS_HOST=${REDIS_PROXY_HOST}
- REDIS_PASS=${REDIS_PASS}
- REDIS_LOCAL_HOST=${REDIS_LOCAL_HOST}
- REDIS_LOCAL_PASS=${REDIS_LOCAL_PASS}
- REDIS_INTEL_HOST=${REDIS_INTEL_PROXY_HOST}
- REDIS_INTEL_PASS=${REDIS_INTEL_PASS}
- ENCRYPT_KEY=${ENCRYPT_KEY}
- ES_HOST=${ES_PROXY_HOST}
- ES_USER=${ES_USER}
- ES_PASS=${ES_PASS}
- ES_INTEL_HOST=${ES_PROXY_HOST}
- ES_INTEL_USER=${ES_INTEL_USER}
- ES_INTEL_PASS=${ES_INTEL_PASS}
- LOG_LEVEL=${LOG_LEVEL}
- NODE_ID=${NODE_ID}
- MODULE_IP_INTELLIGENCE=true
- MODULE_FQDN_INTELLIGENCE=true
- FERRUM_CLOUD_ID=${FERRUM_CLOUD_ID}
deploy:
mode: global
restart_policy:
delay: 5s
networks:
- ferrum
depends_on:
- redis-ha
logging:
driver: local
profiles:
- master
node:
image: "??PRIVATE_REGISTRY/ferrumgate/job.task:2.2.0"
restart: always
environment:
- ROLES=${ROLES}
- REDIS_HOST=${REDIS_PROXY_HOST}
- REDIS_PASS=${REDIS_PASS}
- REDIS_LOCAL_HOST=${REDIS_LOCAL_HOST}
- REDIS_LOCAL_PASS=${REDIS_LOCAL_PASS}
- REDIS_INTEL_HOST=${REDIS_INTEL_PROXY_HOST}
- REDIS_INTEL_PASS=${REDIS_INTEL_PASS}
- ENCRYPT_KEY=${ENCRYPT_KEY}
- ES_HOST=${ES_PROXY_HOST}
- ES_USER=${ES_USER}
- ES_PASS=${ES_PASS}
- ES_INTEL_HOST=${ES_PROXY_HOST}
- ES_INTEL_USER=${ES_INTEL_USER}
- ES_INTEL_PASS=${ES_INTEL_PASS}
- NODE_ID=${NODE_ID}
- VERSION=${VERSION}
- CLUSTER_NODE_HOST=${CLUSTER_NODE_HOST}
- CLUSTER_NODE_IP=${CLUSTER_NODE_IP}
- CLUSTER_NODE_PORT=${CLUSTER_NODE_PORT}
- CLUSTER_NODE_IPW=${CLUSTER_NODE_IPW}
- CLUSTER_NODE_PORTW=${CLUSTER_NODE_PORTW}
- CLUSTER_NODE_PUBLIC_KEY=${CLUSTER_NODE_PUBLIC_KEY}
- FERRUM_CLOUD_ID=${FERRUM_CLOUD_ID}
- FERRUM_CLOUD_URL=${FERRUM_CLOUD_URL}
- FERRUM_CLOUD_TOKEN=${FERRUM_CLOUD_TOKEN}
- MODULE_NODE=true
extra_hosts:
- "registry.ferrumgate.zero:192.168.88.40"
deploy:
mode: global
restart_policy:
delay: 5s
networks:
- ferrum
depends_on: # ferrumgate.sh will add and remove them
- redis-ha
logging:
driver: local
profiles:
- master
- worker