postgresql - How do i use DataGrip to access a postgres instance behind a docker virtual network? -
i have dockerized database micro services. can run manual queries using following:
$ ssh user@foo.domain.com $ docker exec -it postgres bash docker$ psql -u postgres -h 127.0.0.1 -d postgres
the web services talk 1 using docker bridged virtual network batman
.
networks: batman: driver: bridge
in alignment postgres security best practices - not expose postgres port 5432 host machine @ foo.domain.com. sibling containers in 'batman' docker network allowed connect database.
in traditional datagrip / postgres setup, ssh hosted box postgres served, , use local psql client (rules from: pg_hba.conf).
a dockerized system requires 1 additional step (exec).
seeing datagrip doesn't seem allow prefixed connection commands, how use datagrip access postgres instance behind docker virtual network?
i think should possible:
Comments
Post a Comment