From 9537f54aa392204ec7bfd9b519f49b4f963e7ef1 Mon Sep 17 00:00:00 2001 From: Elliot Matson <1711604+elliotmatson@users.noreply.github.com> Date: Tue, 1 Nov 2022 21:26:30 -0500 Subject: [PATCH] Fix healthcheck using wrong user --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 109ed16..782e05d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '3.8' x-common: database: &db-environment POSTGRES_DB: database - POSTGRES_USER: postgres + POSTGRES_USER: &pg-user postgres POSTGRES_PASSWORD: DaVinci TZ: America/Chicago POSTGRES_LOCATION: &db-location "~/db:/var/lib/postgresql/data" @@ -37,7 +37,7 @@ services: volumes: - *db-location healthcheck: - test: ["CMD-SHELL", "pg_isready"] + test: ["CMD", "pg_isready", "-U", *pg-user] interval: 10s timeout: 5s retries: 5