๐Ÿ“ฆ yjhjstz / postgres-xl-docker

๐Ÿ“„ docker-healthcheck-data ยท 14 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14#!/bin/sh -eu

bootstrapped=.bootstrapped

(
    psql \
        -h "${PG_HOST}" \
        -p "${PG_PORT}" \
        -U "${PG_USER_HEALTHCHECK}" \
        -c 'SELECT 1' &&
    touch "$bootstrapped"
) ||
[ ! -f "$bootstrapped" ]