From 3f5b551952b90f28da943f7d94bd704b187ce3ae Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Mon, 24 Jul 2023 10:19:29 -0700 Subject: [PATCH] test: Add profiles to docker compose 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 ``` --- docker-compose.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index a947a285ae..07540c873b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,6 +19,8 @@ services: MYSQL_DATABASE: mysql MYSQL_ROOT_PASSWORD: mysecretpassword MYSQL_ROOT_HOST: '%' + profiles: + - mysql postgresql: image: "postgres:15" @@ -39,6 +41,8 @@ services: POSTGRES_DB: postgres POSTGRES_PASSWORD: mysecretpassword POSTGRES_USER: postgres + profiles: + - postgres postgresql13: image: "postgres:13" @@ -49,6 +53,8 @@ services: POSTGRES_DB: postgres POSTGRES_PASSWORD: mysecretpassword POSTGRES_USER: postgres + profiles: + - postgres postgresql12: image: "postgres:12" @@ -59,6 +65,8 @@ services: POSTGRES_DB: postgres POSTGRES_PASSWORD: mysecretpassword POSTGRES_USER: postgres + profiles: + - postgres postgresql11: image: "postgres:11" @@ -68,4 +76,6 @@ services: environment: POSTGRES_DB: postgres POSTGRES_PASSWORD: mysecretpassword - POSTGRES_USER: postgres \ No newline at end of file + POSTGRES_USER: postgres + profiles: + - postgres \ No newline at end of file