Postgres healthcheck use existing user

This commit is contained in:
niten 2023-09-03 13:52:41 -07:00
parent 485142a276
commit da477c357b
1 changed files with 1 additions and 1 deletions

View File

@ -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 = [