-
Notifications
You must be signed in to change notification settings - Fork 71
/
docker-compose.yml
68 lines (66 loc) · 1.66 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
version: "3"
services:
mysql-1:
image: percona:5.7
command: --server-id=1
--log-bin=mysql-bin
--max-binlog-size=4096
--binlog-format=ROW
--sync-binlog=1
--log-slave-updates=ON
--gtid-mode=ON
--enforce-gtid-consistency=ON
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
--max-connections=1000
--read-only=OFF
--binlog-rows-query-log-events=ON
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_HOST: "%"
volumes:
- /var/lib/mysql
ports:
- "29291:3306"
mysql-2:
image: percona:5.7
command: --server-id=2
--log-bin=mysql-bin
--binlog-format=ROW
--max-binlog-size=4096
--sync-binlog=1
--log-slave-updates=ON
--gtid-mode=ON
--enforce-gtid-consistency=ON
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
--max-connections=1000
--binlog-rows-query-log-events=ON
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_HOST: "%"
volumes:
- /var/lib/mysql
ports:
- "29292:3306"
mysql-3:
image: percona:5.7
command: --server-id=3
--log-bin=mysql-bin
--binlog-format=ROW
--max-binlog-size=4096
--sync-binlog=1
--log-slave-updates=ON
--gtid-mode=ON
--enforce-gtid-consistency=ON
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
--max-connections=1000
--binlog-rows-query-log-events=ON
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_HOST: "%"
volumes:
- /var/lib/mysql
ports:
- "29293:3306"