Add postgres with healthcheck

This commit is contained in:
Greyscale 2024-02-15 01:38:21 +01:00
parent 42721205c9
commit b81e5aa9f8
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2
3 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,4 @@
# checkov:skip=CKV_DOCKER_3 We're not adding a user, its coming down from on-high in mariadb.
FROM mariadb:injected-version
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \

View file

@ -1,3 +1,4 @@
# checkov:skip=CKV_DOCKER_3 We're not adding a user, its coming down from on-high in postgres.
FROM postgres:injected-version
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \

View file

@ -1,2 +1,2 @@
#!/bin/bash
PG_PASSWORD=$POSTGRES_PASSWORD pg_isready -U "$POSTGRES_USER"
PG_PASSWORD=${POSTGRES_PASSWORD} pg_isready -U "${POSTGRES_USER}"