justfile: add pg healthchecking
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2023-07-19 22:17:40 +02:00
parent ecfa845636
commit f33f87f260
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -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.