docker - How to allow my host IP address in the PostgreSQL pg_hba.conf file -
i'm having postgresql instance running on local machine, listening on interfaces (listen_addresses = '*'
), , docker running rails application needs connect database.
updating manually pg_hba.conf
file adding line allowing ip address makes application working.
now, given computer has ip address 192.168.1.10, how allow ip address in pg_hba.conf
, dynamically in case ip address changes, file updated , postgresql continue accepting connections?
(my point don't want allow 192.168.1.0 network, otherwise colleagues gonna able connect db, don't want :))
Comments
Post a Comment