From 3c6a656df669b60642a4dfb859b0c05ff31917a6 Mon Sep 17 00:00:00 2001 From: tudor <7089284+tudddorrr@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:32:50 +0100 Subject: [PATCH] use docker compose over docker-compose --- package.json | 2 +- tests/run-tests.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cfd80e18..86550994 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "watch": "tsx watch src/index.ts", "build": "npx tsc -p tsconfig.build.json", - "dc": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml", + "dc": "docker compose -f docker-compose.yml -f docker-compose.dev.yml", "seed": "DB_HOST=127.0.0.1 tsx tests/seed.ts", "test": "./tests/run-tests.sh", "up": "npm run dc -- up --build -d", diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 2c14e803..ccb5f6b7 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -3,9 +3,9 @@ export $(cat envs/.env.test | xargs) if [ -z "$CI" ]; then - alias dc="docker-compose -f docker-compose.test.yml" + alias dc="docker compose -f docker-compose.test.yml" else - alias dc="docker-compose -f docker-compose.ci.yml" + alias dc="docker compose -f docker-compose.ci.yml" fi trap "cleanup" EXIT