From 1d156c305397d95b8abd8ebf4e0a3b03805abfc2 Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 1 Oct 2023 13:43:25 -0700 Subject: [PATCH] Add kerberos health check --- lemmy-docker.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lemmy-docker.nix b/lemmy-docker.nix index 315dc5b..1c75b1d 100644 --- a/lemmy-docker.nix +++ b/lemmy-docker.nix @@ -66,6 +66,13 @@ let user = "${toString postgresCfg.uid}:${toString postgresCfg.uid}"; env_file = [ postgresCfg.envFile ]; restart = "always"; + healthcheck = { + test = [ "CMD" "pg_isready" "-U" "lemmy" "-d" "lemmy" ]; + start_period = "20s"; + interval = "30s"; + retries = 5; + timeout = "3s"; + }; }; }; };