fix pg ready cmd

This commit is contained in:
2025-03-17 17:46:50 +04:00
parent ba5e284961
commit 10443ca529

View File

@@ -140,7 +140,7 @@ in
command = "${script}/bin/run-postgres"; command = "${script}/bin/run-postgres";
shutdown.signal = 2; shutdown.signal = 2;
readiness_probe = { 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; initial_delay_seconds = 2;
period_seconds = 2; period_seconds = 2;
timeout_seconds = 2; timeout_seconds = 2;