totara-docker-dev icon indicating copy to clipboard operation
totara-docker-dev copied to clipboard

Add missing host auth method to pgsql containers

Open markmetcalfe opened this issue 9 months ago • 0 comments

Adds POSTGRES_HOST_AUTH_METHOD: trust to the pgsql 10, 11 & 12 containers as otherwise they don't start properly and give the following message:

Error: Database is uninitialized and superuser password is not specified.
       You must specify POSTGRES_PASSWORD to a non-empty value for the
       superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".

       You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
       connections without a password. This is *not* recommended.

       See PostgreSQL documentation about "trust":
       https://www.postgresql.org/docs/current/auth-trust.html

Note that this fix is used for the pgsql 13+ containers too.

markmetcalfe avatar Apr 06 '25 22:04 markmetcalfe