File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2929 "dev" : " trap 'npm run db:clean' INT && run-s db:clean db:run && nodemon --exec node --loader ts-node/esm src/server/server.ts | pino-pretty --colorize" ,
3030 "test" : " run-s db:clean db:run test:run db:clean" ,
3131 "db:clean" : " cd test/db && docker compose down" ,
32- "db:run" : " cd test/db && docker compose up --detach && sleep 5 " ,
32+ "db:run" : " cd test/db && docker compose up --detach --wait " ,
3333 "test:run" : " vitest run" ,
3434 "test:update" : " run-s db:clean db:run && vitest run --update && run-s db:clean"
3535 },
Original file line number Diff line number Diff line change @@ -8,3 +8,9 @@ services:
88 environment :
99 POSTGRES_PASSWORD : postgres
1010 command : postgres -c config_file=/etc/postgresql/postgresql.conf -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key
11+ healthcheck :
12+ test : ["CMD-SHELL", "pg_isready -U postgres"]
13+ interval : 1s
14+ timeout : 2s
15+ retries : 10
16+ start_period : 2s
You can’t perform that action at this time.
0 commit comments