-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yaml
44 lines (42 loc) · 981 Bytes
/
docker-compose.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
version: '2'
networks:
default:
external:
name: testwifi
services:
mysql1:
container_name: "mysql1"
image: mysql:latest
volumes:
- ./${MYSQL1_SAVE_PATH}:/var/lib/mysql
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=${ROOT_PASSWORD}
- MYSQL_DATABASE=${DATABASE}
restart: always
mysql2:
container_name: "mysql2"
image: mysql:latest
volumes:
- ./${MYSQL2_SAVE_PATH}:/var/lib/mysql
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=${ROOT_PASSWORD}
- MYSQL_DATABASE=${DATABASE}
restart: always
kingshard:
container_name: "kingshard"
image: mysql:latest
image: matjazmav/kingshard
volumes:
- ./ks1.yaml:/etc/ks.yaml
ports:
- "9696:9696"
expose:
- "9696"
links:
- mysql1
- mysql2
restart: always