Skip to content

Commit 036d94e

Browse files
committed
kingshard 无法启动的临时处理
1 parent 51c4660 commit 036d94e

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Docker-mysql-cluster
22
use docker and kingshard build mysql cluster
33

4-
### What is `kingshard`
5-
> https://github.com/flike/kingshard
6-
74
### 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!

docker-compose.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ mysql2:
1515
- MYSQL_DATABASE=kingshard
1616

1717
kingshard:
18-
image: kingshard
18+
image: matjazmav/kingshard
19+
# image: mritd/kingshard
1920
volumes:
20-
- .:/go/src/github.com/flike/kingshard/etc
21+
- ./ks1.yaml:/etc/ks.yaml
2122
ports:
2223
- "9696:9696"
2324
expose:
2425
- "9696"
2526
links:
2627
- mysql1
2728
- mysql2
28-
entrypoint: ./etc/wait-for-it.sh mysql2:3306 -- kingshard " -config=./etc/ks1.yaml"
29-

0 commit comments

Comments
 (0)