testcontainers-python icon indicating copy to clipboard operation
testcontainers-python copied to clipboard

Support more environment variables in PostgreSQL container

Open ksquaredkey opened this issue 3 years ago • 0 comments

With the move from md5 to scram-sha-256 in the PostgreSQL 14.x containers, I find myself needing to set the POSTGRES_HOST_AUTH_METHOD and potentially POSTGRES_INITDB_ARGS. Seems like it would be good to flesh out the rest of the currently supported environment variables of the official PostgreSQL container. The ones not yet supported are:

  • POSTGRES_INITDB_ARGS
  • POSTGRES_INITDB_WALDIR
  • POSTGRES_HOST_AUTH_METHOD
  • PGDATA

ksquaredkey avatar Dec 10 '22 16:12 ksquaredkey