-
Notifications
You must be signed in to change notification settings - Fork 680
/
docker-compose.yml
53 lines (47 loc) · 980 Bytes
/
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
version: '3.4'
x-mysql: &mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: true
command: >
mysqld
--log-bin=mysql-bin.log
--server-id 1
--binlog-format=row
--gtid_mode=on
--enforce-gtid-consistency=on
x-mariadb: &mariadb
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
command: >
--log-bin=master-bin
--server-id=1
--default-authentication-plugin=mysql_native_password
--binlog-format=row
services:
percona-5.7:
<<: *mysql
image: percona:5.7
ports:
- "3306:3306"
percona-5.7-ctl:
<<: *mysql
image: percona:5.7
ports:
- "3307:3306"
percona-8.0:
<<: *mysql
image: percona:8.0
ports:
- "3309:3306"
mariadb-10.6:
<<: *mariadb
image: mariadb:10.6
ports:
- "3308:3306"
volumes:
- type: bind
source: ./.mariadb
target: /opt/key_file
- type: bind
source: ./.mariadb/my.cnf
target: /etc/mysql/my.cnf