Skip to content

Commit

Permalink
use docker compose over docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
tudddorrr committed Aug 2, 2024
1 parent c1c3289 commit 3c6a656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c6a656

Please sign in to comment.