From 51cc7a4b995697d89160acd53de7eb057518bd8f Mon Sep 17 00:00:00 2001 From: Julian Helfferich Date: Mon, 21 Oct 2024 08:23:58 +0200 Subject: [PATCH] Check postgres availability through network port The pg_isready returns true earlier if tested through the local socket. I have added the '-h postgres' flag, to test availability throught the network port. --- tests/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker-compose.yml b/tests/docker-compose.yml index 94a046373fb59..fa5ed880e9935 100644 --- a/tests/docker-compose.yml +++ b/tests/docker-compose.yml @@ -5,7 +5,7 @@ services: POSTGRES_USER: &pguser odoo POSTGRES_PASSWORD: &pgpassword odoo healthcheck: - test: ["CMD-SHELL", "pg_isready"] + test: ["CMD-SHELL", "pg_isready -h postgres"] interval: 5s timeout: 5s retries: 5