forked from neumayer/mysql-docker-compose-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.17 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
version: '3'
services:
mysql-server-56:
image: mysql/mysql-server:5.6
volumes:
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
ports:
- "3306:3306"
mysql-server-57:
image: mysql/mysql-server:5.7
volumes:
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
ports:
- "3307:3306"
mysql-server-80:
image: mysql/mysql-server:8.0
volumes:
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
ports:
- "3308:3306"
command: ["mysqld", "--default-authentication-plugin=mysql_native_password"]
dbwebapp-56:
env_file:
- dbwebapp.env
environment:
- DBHOST=mysql-server-56
image: neumayer/dbwebapp
ports:
- "8056:8080"
depends_on:
- mysql-server-56
dbwebapp-57:
env_file:
- dbwebapp.env
environment:
- DBHOST=mysql-server-57
image: neumayer/dbwebapp
ports:
- "8057:8080"
depends_on:
- mysql-server-57
dbwebapp-80:
env_file:
- dbwebapp.env
environment:
- DBHOST=mysql-server-80
image: neumayer/dbwebapp
ports:
- "8080:8080"
depends_on:
- mysql-server-80