Skip to content

Commit 067bb17

Browse files
committed
build: Run all supported versions of MySQL / PostgreSQL
MySQL 5.7, 8.0 PostgreSQL 11, 12, 13, 14, 15
1 parent a748990 commit 067bb17

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

docker-compose.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ services:
1010
MYSQL_ROOT_PASSWORD: mysecretpassword
1111
MYSQL_ROOT_HOST: '%'
1212

13+
mysql5:
14+
image: "mysql/mysql-server:5.7"
15+
ports:
16+
- "3305:3306"
17+
restart: always
18+
environment:
19+
MYSQL_DATABASE: mysql
20+
MYSQL_ROOT_PASSWORD: mysecretpassword
21+
MYSQL_ROOT_HOST: '%'
22+
1323
postgresql:
1424
image: "postgres:15"
1525
ports:
@@ -19,3 +29,43 @@ services:
1929
POSTGRES_DB: postgres
2030
POSTGRES_PASSWORD: mysecretpassword
2131
POSTGRES_USER: postgres
32+
33+
postgresql14:
34+
image: "postgres:14"
35+
ports:
36+
- "5414:5432"
37+
restart: always
38+
environment:
39+
POSTGRES_DB: postgres
40+
POSTGRES_PASSWORD: mysecretpassword
41+
POSTGRES_USER: postgres
42+
43+
postgresql13:
44+
image: "postgres:13"
45+
ports:
46+
- "5413:5432"
47+
restart: always
48+
environment:
49+
POSTGRES_DB: postgres
50+
POSTGRES_PASSWORD: mysecretpassword
51+
POSTGRES_USER: postgres
52+
53+
postgresql12:
54+
image: "postgres:12"
55+
ports:
56+
- "5412:5432"
57+
restart: always
58+
environment:
59+
POSTGRES_DB: postgres
60+
POSTGRES_PASSWORD: mysecretpassword
61+
POSTGRES_USER: postgres
62+
63+
postgresql11:
64+
image: "postgres:11"
65+
ports:
66+
- "5411:5432"
67+
restart: always
68+
environment:
69+
POSTGRES_DB: postgres
70+
POSTGRES_PASSWORD: mysecretpassword
71+
POSTGRES_USER: postgres

0 commit comments

Comments
 (0)