Skip to content

Instantly share code, notes, and snippets.

@kwokhou
Created August 27, 2019 05:35
Show Gist options
  • Save kwokhou/9fa46fc24a5b08b33043cfc70a2b6f0b to your computer and use it in GitHub Desktop.
Save kwokhou/9fa46fc24a5b08b33043cfc70a2b6f0b to your computer and use it in GitHub Desktop.
Configure passwordless access to Postgres docker container
...
host replication all ::1/128 trust
host all andy 172.17.0.0/16 trust
^ ^ ^
host user ip range of host trust = no password
...
@kwokhou
Copy link
Author

kwokhou commented Aug 27, 2019

/var/lib/postgresql/data/pg_hba.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment