From f9536736486f7b377c83200efb39b5c35f3ab971 Mon Sep 17 00:00:00 2001 From: Pavle Portic Date: Sun, 30 Oct 2022 02:17:59 +0200 Subject: [PATCH] Fix postgres healthcheck command --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index e50e567..4e8863d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: volumes: - postgres-data:/var/lib/postgresql/data healthcheck: - test: pg_isready + test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ] interval: 5s timeout: 2s retries: 5