diff --git a/services/postgres.nix b/services/postgres.nix index 4ba4b95..d273c92 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 -h $RUNTIME_PATH/${name} -p ${builtins.toString port} -d postgres"; + exec.command = "${package}/bin/pg_isready -h ${bind} -p ${builtins.toString port} -d postgres"; initial_delay_seconds = 2; period_seconds = 2; timeout_seconds = 2;