This repository was archived by the owner on May 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·149 lines (142 loc) · 3.27 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
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
version: '2'
services:
imagedb:
build: .
container_name: imagedb
restart: always
minio:
image: minio/minio:latest
volumes:
- data:/data
ports:
- "9001:9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: "server minio/data"
############################### vitese below
consul1:
image: consul:latest
hostname: "consul1"
ports:
- "8400:8400"
- "8500:8500"
- "8600:8600"
command: "agent -server -bootstrap-expect 3 -ui -disable-host-node-id -client 0.0.0.0"
consul2:
image: consul:latest
hostname: "consul2"
expose:
- "8400"
- "8500"
- "8600"
command: "agent -server -retry-join consul1 -disable-host-node-id"
depends_on:
- consul1
consul3:
image: consul:latest
hostname: "consul3"
expose:
- "8400"
- "8500"
- "8600"
command: "agent -server -retry-join consul1 -disable-host-node-id"
depends_on:
- consul1
vtctld:
image: vitess/base
ports:
- "15000:$WEB_PORT"
- "$GRPC_PORT"
command: ["sh", "-c", " $$VTROOT/bin/vtctld \
$TOPOLOGY_FLAGS \
-cell $CELL \
-web_dir $$VTTOP/web/vtctld \
-web_dir2 $$VTTOP/web/vtctld2/app \
-workflow_manager_init \
-workflow_manager_use_election \
-service_map 'grpc-vtctl' \
-backup_storage_implementation file \
-file_backup_storage_root $$VTDATAROOT/backups \
-logtostderr=true \
-port $WEB_PORT \
-grpc_port $GRPC_PORT \
-pid_file $$VTDATAROOT/tmp/vtctld.pid"]
depends_on:
- consul1
- consul2
- consul3
vtgate:
image: vitess/base
ports:
- "15099:$WEB_PORT"
- "$GRPC_PORT"
- "15306:$MYSQL_PORT"
command: ["sh", "-c", "$$VTROOT/bin/vtgate \
$TOPOLOGY_FLAGS \
-logtostderr=true \
-port $WEB_PORT \
-grpc_port $GRPC_PORT \
-mysql_server_port $MYSQL_PORT \
-mysql_auth_server_impl none \
-cell $CELL \
-cells_to_watch $CELL \
-tablet_types_to_wait MASTER,REPLICA \
-gateway_implementation discoverygateway \
-service_map 'grpc-vtgateservice' \
-pid_file $$VTDATAROOT/tmp/vtgate.pid"]
depends_on:
- vtctld
vttablet1:
image: vitess/base
ports:
- "15001:$WEB_PORT"
- "$GRPC_PORT"
- "3306"
volumes:
- ".:/script"
environment:
- TOPOLOGY_FLAGS
- WEB_PORT
- GRPC_PORT
- CELL
- KEYSPACE
command: ["sh", "-c", "/script/vttablet-up.sh 1"]
depends_on:
- vtctld
vttablet2:
image: vitess/base
ports:
- "15002:$WEB_PORT"
- "$GRPC_PORT"
- "3306"
volumes:
- ".:/script"
environment:
- TOPOLOGY_FLAGS
- WEB_PORT
- GRPC_PORT
- CELL
- KEYSPACE
command: ["sh", "-c", "/script/vttablet-up.sh 2"]
depends_on:
- vtctld
vttablet3:
image: vitess/base
ports:
- "15003:$WEB_PORT"
- "$GRPC_PORT"
- "3306"
volumes:
- ".:/script"
environment:
- TOPOLOGY_FLAGS
- WEB_PORT
- GRPC_PORT
- CELL
- KEYSPACE
command: ["sh", "-c", "/script/vttablet-up.sh 3"]
depends_on:
- vtctld
volumes:
data: