-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathdocker-compose.yml
147 lines (146 loc) · 4.74 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: "3"
services:
mysql5.5:
image: mysql:5.5
container_name: ${MYSQL_CONTAINER_NAME_PREFIX}5.5
ports:
- 3355:3306
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- TZ=${TIMEZONE}
volumes:
- ./my.cnf:/root/.my.cnf:ro
- ./mysql5.5/conf.d:/etc/mysql/conf.d:ro
- ./mysql5.5/logs:/var/log/mysql:rw
- ./mysql5.5/initdb.d:/docker-entrypoint-initdb.d:ro
- ./common:${MOUNTED_SHARED_DIRECTORY}:ro
- ./auto-generate:/auto-generate:rw
mysql5.6:
image: mysql:5.6
container_name: ${MYSQL_CONTAINER_NAME_PREFIX}5.6
ports:
- 3356:3306
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- TZ=${TIMEZONE}
volumes:
- ./my.cnf:/root/.my.cnf:ro
- ./mysql5.6/conf.d:/etc/mysql/conf.d:ro
- ./mysql5.6/logs:/var/log/mysql:rw
- ./mysql5.6/initdb.d:/docker-entrypoint-initdb.d:ro
- ./common:${MOUNTED_SHARED_DIRECTORY}:ro
- ./auto-generate:/auto-generate:rw
mysql5.7:
image: mysql:5.7
container_name: ${MYSQL_CONTAINER_NAME_PREFIX}5.7
ports:
- 3357:3306
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- TZ=${TIMEZONE}
volumes:
- ./my.cnf:/root/.my.cnf:ro
- ./mysql5.7/conf.d:/etc/mysql/conf.d:ro
- ./mysql5.7/logs:/var/log/mysql:rw
- ./mysql5.7/initdb.d:/docker-entrypoint-initdb.d:ro
- ./common:${MOUNTED_SHARED_DIRECTORY}:ro
- ./auto-generate:/auto-generate:rw
mysql8.0:
image: mysql:8.0
container_name: ${MYSQL_CONTAINER_NAME_PREFIX}8.0
ports:
- 3380:3306
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- TZ=${TIMEZONE}
volumes:
- ./my.cnf:/root/.my.cnf:ro
- ./mysql8.0/conf.d:/etc/mysql/conf.d:ro
- ./mysql8.0/logs:/var/log/mysql:rw
- ./mysql8.0/initdb.d:/docker-entrypoint-initdb.d:ro
- ./common:${MOUNTED_SHARED_DIRECTORY}:ro
- ./auto-generate:/auto-generate:rw
mariadb10.0:
image: mariadb:10.0
container_name: ${MARIADB_CONTAINER_NAME_PREFIX}10.0
ports:
- 3310:3306
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- TZ=${TIMEZONE}
volumes:
- ./my.cnf:/root/.my.cnf:ro
- ./mariadb10.0/conf.d:/etc/mysql/conf.d:ro
- ./mariadb10.0/logs:/var/log/mysql:rw
- ./mariadb10.0/initdb.d:/docker-entrypoint-initdb.d:ro
- ./common:${MOUNTED_SHARED_DIRECTORY}:ro
- ./auto-generate:/auto-generate:rw
mariadb10.1:
image: mariadb:10.1
container_name: ${MARIADB_CONTAINER_NAME_PREFIX}10.1
ports:
- 3311:3306
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- TZ=${TIMEZONE}
volumes:
- ./my.cnf:/root/.my.cnf:ro
- ./mariadb10.1/conf.d:/etc/mysql/conf.d:ro
- ./mariadb10.1/logs:/var/log/mysql:rw
- ./mariadb10.1/initdb.d:/docker-entrypoint-initdb.d:ro
- ./common:${MOUNTED_SHARED_DIRECTORY}:ro
- ./auto-generate:/auto-generate:rw
mariadb10.2:
image: mariadb:10.2
container_name: ${MARIADB_CONTAINER_NAME_PREFIX}10.2
ports:
- 3312:3306
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- TZ=${TIMEZONE}
volumes:
- ./my.cnf:/root/.my.cnf:ro
- ./mariadb10.2/conf.d:/etc/mysql/conf.d:ro
- ./mariadb10.2/logs:/var/log/mysql:rw
- ./mariadb10.2/initdb.d:/docker-entrypoint-initdb.d:ro
- ./common:${MOUNTED_SHARED_DIRECTORY}:ro
- ./auto-generate:/auto-generate:rw
mariadb10.3:
image: mariadb:10.3
container_name: ${MARIADB_CONTAINER_NAME_PREFIX}10.3
ports:
- 3313:3306
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- TZ=${TIMEZONE}
volumes:
- ./my.cnf:/root/.my.cnf:ro
- ./mariadb10.3/conf.d:/etc/mysql/conf.d:ro
- ./mariadb10.3/logs:/var/log/mysql:rw
- ./mariadb10.3/initdb.d:/docker-entrypoint-initdb.d:ro
- ./common:${MOUNTED_SHARED_DIRECTORY}:ro
- ./auto-generate:/auto-generate:rw