tianon/docker-postgres-upgrade

pg_hba.conf does not match postgres image

belak opened this issue · 4 comments

belak commented

This means that anything not connecting via the local socket will fail, so most applications linking the postgres container will not work.

At least for me, pg_hba.conf was missing this:

host all all 0.0.0.0/0 md5

Normally this would be set up in https://github.com/docker-library/postgres/blob/master/9.5/docker-entrypoint.sh, but because we use initdb during the upgrade, that never happens.

CvX commented

@tianon I've changed db setup so it looks like this: master...CvX:new-db-setup-fix#diff-cd39faa12723607353bf74d281b3ed73
That works for me. Are there any downsides to running postgres' docker-entrypoint.sh just like that?

just realized that the pg_hba.conf file is different in the data folder of two postgres versions
In my old postgres, The last linehost all all all md5 exists, but in my new postgres, this line does not exist.
Then I found this issue. So is it still open?