justfile: add pg healthchecking
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ecfa845636
commit
f33f87f260
6
justfile
6
justfile
@ -81,6 +81,12 @@ dbstart:
|
||||
-e POSTGRES_INITDB_ARGS="--auth-host=scram-sha-256 --auth-local=scram-sha-256" \
|
||||
-v $PWD/tmp/db:/var/lib/postgresql/data:Z \
|
||||
-p 127.0.0.1:5432:5432 \
|
||||
--health-cmd "sh -c 'pg_isready -U postgres -d posgres'" \
|
||||
--health-on-failure kill \
|
||||
--health-retries 3 \
|
||||
--health-interval 10s \
|
||||
--health-timeout 1s \
|
||||
--health-start-period=5s \
|
||||
docker.io/library/postgres:15.2-alpine3.17
|
||||
|
||||
# stop pg.
|
||||
|
Loading…
Reference in New Issue
Block a user