From f15818f6b6ca8576832e9b20e3ebc99b25bd7cc7 Mon Sep 17 00:00:00 2001 From: Nikkuss Date: Mon, 17 Mar 2025 17:48:19 +0400 Subject: [PATCH] fix pg ready cmd --- services/postgres.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/postgres.nix b/services/postgres.nix index d273c92..d19ad76 100644 --- a/services/postgres.nix +++ b/services/postgres.nix @@ -142,8 +142,8 @@ in readiness_probe = { exec.command = "${package}/bin/pg_isready -h ${bind} -p ${builtins.toString port} -d postgres"; initial_delay_seconds = 2; - period_seconds = 2; - timeout_seconds = 2; + period_seconds = 10; + timeout_seconds = 4; success_threshold = 1; failure_threshold = 5; };