From da477c357b10471362b9ee1f3d8cd7279a71b368 Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 3 Sep 2023 13:52:41 -0700 Subject: [PATCH] Postgres healthcheck use existing user --- mastodon-container.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index 0d6ba01..7d07a73 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -283,7 +283,7 @@ in { restart = "always"; volumes = [ "${cfg.state-directory}/postgres:/var/lib/postgresql/data" ]; - healthcheck.test = [ "CMD" "pg_isready" "-U" "postgres" ]; + healthcheck.test = [ "CMD" "pg_isready" "-U" "mastodon" ]; # environment.POSTGRES_HOST_AUTH_METHOD = "trust"; user = mkUserMap cfg.uids.postgres; env_file = [