Add kerberos health check

This commit is contained in:
niten 2023-10-01 13:43:25 -07:00
parent 4788580528
commit 1d156c3053
1 changed files with 7 additions and 0 deletions

View File

@ -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";
};
};
};
};