Skip to content

Commit

Permalink
build: Run all supported versions of MySQL / PostgreSQL (#2463)
Browse files Browse the repository at this point in the history
MySQL 5.7, 8.0
PostgreSQL 11, 12, 13, 14, 15
  • Loading branch information
kyleconroy authored Jul 14, 2023
1 parent a748990 commit cef1a20
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ services:
MYSQL_ROOT_PASSWORD: mysecretpassword
MYSQL_ROOT_HOST: '%'

mysql5:
image: "mysql/mysql-server:5.7"
ports:
- "3305:3306"
restart: always
environment:
MYSQL_DATABASE: mysql
MYSQL_ROOT_PASSWORD: mysecretpassword
MYSQL_ROOT_HOST: '%'

postgresql:
image: "postgres:15"
ports:
Expand All @@ -19,3 +29,43 @@ services:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres

postgresql14:
image: "postgres:14"
ports:
- "5414:5432"
restart: always
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres

postgresql13:
image: "postgres:13"
ports:
- "5413:5432"
restart: always
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres

postgresql12:
image: "postgres:12"
ports:
- "5412:5432"
restart: always
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres

postgresql11:
image: "postgres:11"
ports:
- "5411:5432"
restart: always
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres

0 comments on commit cef1a20

Please sign in to comment.