File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Docker-mysql-cluster
2
2
use docker and kingshard build mysql cluster
3
3
4
- ### What is ` kingshard `
5
- > https://github.com/flike/kingshard
6
-
7
4
### How to use
8
- 1 . Run ` docker pull strucoder/kingshard `
9
- 2 . Edit ` docker-compose.yaml ` and ` ks1.yaml ` files to your need
10
- 3 . Run ` docker-compose up `
5
+ * docker-compose up -d
6
+ * docker-compose ps 检查 mysql1 和 mysql2 status
7
+ * docker-compose restart kingshard
8
+ * docker-compose logs kingshard 检查 kingshard is work!
Original file line number Diff line number Diff line change @@ -15,15 +15,14 @@ mysql2:
15
15
- MYSQL_DATABASE=kingshard
16
16
17
17
kingshard :
18
- image : kingshard
18
+ image : matjazmav/kingshard
19
+ # image: mritd/kingshard
19
20
volumes :
20
- - .:/go/src/github.com/flike/kingshard/ etc
21
+ - ./ks1.yaml:/ etc/ks.yaml
21
22
ports :
22
23
- " 9696:9696"
23
24
expose :
24
25
- " 9696"
25
26
links :
26
27
- mysql1
27
28
- mysql2
28
- entrypoint : ./etc/wait-for-it.sh mysql2:3306 -- kingshard " -config=./etc/ks1.yaml"
29
-
You can’t perform that action at this time.
0 commit comments