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;