From 1f2c768dd1058d593fe37e43b80f91ee756e8451 Mon Sep 17 00:00:00 2001 From: Nikkuss Date: Mon, 17 Mar 2025 17:41:01 +0400 Subject: [PATCH] fix pg ready cmd --- services/postgres.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/postgres.nix b/services/postgres.nix index fc9cd6e..02b1298 100644 --- a/services/postgres.nix +++ b/services/postgres.nix @@ -140,7 +140,7 @@ in command = "${script}/bin/run-postgres"; shutdown.signal = 2; readiness_probe = { - exec.command = "${package}/bin/pg_isready"; + exec.command = "${package}/bin/pg_isready -h $RUNTIME_PATH/${name} -p ${builtins.toString port} -U postgres"; initial_delay_seconds = 2; period_seconds = 2; timeout_seconds = 2;