-
Notifications
You must be signed in to change notification settings - Fork 70
/
docker-compose.yml
35 lines (35 loc) · 1.5 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
version: '3'
services:
mysql5.6:
image: ${MYSQL_IMAGE:-mysql:5.6}
ports:
- ${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:-3306}:3306
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
# MariaDB >= 10.0.12 doesn't enable Performance Schema by default so we need to do it manually
# https://mariadb.com/kb/en/mariadb/performance-schema-overview/#activating-the-performance-schema
command: --performance-schema --secure-file-priv=""
volumes:
- ./testdata/schema/:/docker-entrypoint-initdb.d/:rw
mysql5.7:
image: ${MYSQL_IMAGE:-mysql:5.7}
ports:
- ${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:-3307}:3306
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
# MariaDB >= 10.0.12 doesn't enable Performance Schema by default so we need to do it manually
# https://mariadb.com/kb/en/mariadb/performance-schema-overview/#activating-the-performance-schema
command: --performance-schema --secure-file-priv=""
volumes:
- ./testdata/schema/:/docker-entrypoint-initdb.d/:rw
mysql8.0:
image: ${MYSQL_IMAGE:-mysql:8.0.3}
ports:
- ${MYSQL_HOST:-127.0.0.1}:${MYSQL_PORT:-3308}:3306
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
# MariaDB >= 10.0.12 doesn't enable Performance Schema by default so we need to do it manually
# https://mariadb.com/kb/en/mariadb/performance-schema-overview/#activating-the-performance-schema
command: --performance-schema --secure-file-priv=""
volumes:
- ./testdata/schema/:/docker-entrypoint-initdb.d/:rw