File tree Expand file tree Collapse file tree 4 files changed +136
-0
lines changed Expand file tree Collapse file tree 4 files changed +136
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ version : ' 2.2'
3+ services :
4+ coordinator1 :
5+ image : dingodatabase/dingo:latest
6+ hostname : coordinator1
7+ container_name : coordinator1
8+ networks :
9+ - dingo_net
10+ environment :
11+ DINGO_ROLE : coordinator
12+ DINGO_HOSTNAME : coordinator1
13+
14+ coordinator2 :
15+ image : dingodatabase/dingo:latest
16+ hostname : coordinator2
17+ container_name : coordinator2
18+ networks :
19+ - dingo_net
20+ environment :
21+ DINGO_ROLE : coordinator
22+ DINGO_HOSTNAME : coordinator2
23+
24+ coordinator3 :
25+ image : dingodatabase/dingo:latest
26+ hostname : coordinator3
27+ container_name : coordinator3
28+ networks :
29+ - dingo_net
30+ environment :
31+ DINGO_ROLE : coordinator
32+ DINGO_HOSTNAME : coordinator3
33+
34+ executor1 :
35+ image : dingodatabase/dingo:latest
36+ hostname : executor1
37+ container_name : executor1
38+ ports :
39+ - 8765:8765
40+ networks :
41+ - dingo_net
42+ depends_on :
43+ - coordinator1
44+ - coordinator2
45+ - coordinator3
46+ environment :
47+ DINGO_ROLE : executor
48+ DINGO_HOSTNAME : executor1
49+
50+ executor2 :
51+ image : dingodatabase/dingo:latest
52+ hostname : executor2
53+ container_name : executor2
54+ ports :
55+ - 8766:8765
56+ networks :
57+ - dingo_net
58+ depends_on :
59+ - coordinator1
60+ - coordinator2
61+ - coordinator3
62+ environment :
63+ DINGO_ROLE : executor
64+ DINGO_HOSTNAME : executor2
65+
66+ executor3 :
67+ image : dingodatabase/dingo:latest
68+ hostname : executor3
69+ container_name : executor3
70+ ports :
71+ - 8767:8765
72+ networks :
73+ - dingo_net
74+ depends_on :
75+ - coordinator1
76+ - coordinator2
77+ - coordinator3
78+ environment :
79+ DINGO_ROLE : executor
80+ DINGO_HOSTNAME : executor3
81+
82+ web :
83+ image : dingodatabase/dingo:latest
84+ hostname : web
85+ container_name : web
86+ ports :
87+ - 13000:13000
88+ networks :
89+ - dingo_net
90+ depends_on :
91+ - coordinator1
92+ - coordinator2
93+ - coordinator3
94+ environment :
95+ DINGO_ROLE : web
96+ DINGO_HOSTNAME : web
97+
98+ networks :
99+ dingo_net :
100+ driver : bridge
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -x
3+ nohup docker-compose -f /root/dingo/docker-compose.yml up -d >> /tmp/dingo.log 2>&1 &
Original file line number Diff line number Diff line change 1+ # How to install crontab script
2+
3+ - Edit crontab files
4+
5+ ``` shell
6+ crontab -e
7+ ```
8+
9+ - Copy Commands to Script
10+
11+ ``` shell
12+ 10 15 * * * /root/dingo/start.sh
13+ ```
14+
15+ - Docker configuration
16+
17+ ``` shell
18+ {
19+ " auths" : {
20+ " https://index.docker.io/v1/" : {
21+ " auth" : " ZGluZ29kYXRhYmFzZTpTZXJ2ZXIyMDIxIQ=="
22+ }
23+ },
24+
25+ " proxies" : {
26+ " default" : {
27+ }
28+ }
29+ }
30+ ```
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -x
3+ nohup docker-compose -f /root/dingo/docker-compose.yml down && docker rmi -f dingodatabase/dingo:latest && docker-compose -f /root/dingo/docker-compose.yml up -d >> /tmp/dingo.log 2>&1 &
You can’t perform that action at this time.
0 commit comments