Skip to content

Commit

Permalink
test: Add profiles to docker compose (#2503)
Browse files Browse the repository at this point in the history
By default, only the PostgreSQL 15 and MySQL 8 containers will start. To
start all version of MySQL and PostgreSQL, use the following command:

```
docker compose --profile mysql --profile postgres up
```
  • Loading branch information
kyleconroy committed Jul 24, 2023
1 parent 85936d6 commit a5f57a9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ services:
MYSQL_DATABASE: mysql
MYSQL_ROOT_PASSWORD: mysecretpassword
MYSQL_ROOT_HOST: '%'
profiles:
- mysql

postgresql:
image: "postgres:15"
Expand All @@ -39,6 +41,8 @@ services:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres
profiles:
- postgres

postgresql13:
image: "postgres:13"
Expand All @@ -49,6 +53,8 @@ services:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres
profiles:
- postgres

postgresql12:
image: "postgres:12"
Expand All @@ -59,6 +65,8 @@ services:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres
profiles:
- postgres

postgresql11:
image: "postgres:11"
Expand All @@ -68,4 +76,6 @@ services:
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres
POSTGRES_USER: postgres
profiles:
- postgres

0 comments on commit a5f57a9

Please sign in to comment.