add docker healthchecks to the docker images

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey 2022-08-25 15:06:23 +02:00
parent c90ee1c4db
commit 1edb422f3d
10 changed files with 35 additions and 2 deletions

View file

@ -31,3 +31,5 @@ RUN echo "root:$(openssl rand -base64 12)" | chpasswd
USER postgres
ENTRYPOINT ["start.sh"]
HEALTHCHECK CMD psql -d "postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB" -c "select now()" || exit 1