Postgres healthcheck use existing user
This commit is contained in:
parent
485142a276
commit
da477c357b
|
@ -283,7 +283,7 @@ in {
|
||||||
restart = "always";
|
restart = "always";
|
||||||
volumes =
|
volumes =
|
||||||
[ "${cfg.state-directory}/postgres:/var/lib/postgresql/data" ];
|
[ "${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";
|
# environment.POSTGRES_HOST_AUTH_METHOD = "trust";
|
||||||
user = mkUserMap cfg.uids.postgres;
|
user = mkUserMap cfg.uids.postgres;
|
||||||
env_file = [
|
env_file = [
|
||||||
|
|
Loading…
Reference in New Issue