Access Postgres DB outside of container


I have an R app that has to access a Postgresql DB from outside the inner and outer shinyproxy container. A Postgresql driver is installed on the host machine from which shinyproxy is running.

How do I provide access to the app running inside shinyproxy to the Postgresql driver to access the external DB?

Hold on. Inner and outer container?

Your Shinyproxy is in Docker container?

In all my setups, shinyproxy is on host machine, but apps (in cointainers) are accessing Pgsql by targeting host IP address.

Check /etc/postgres/version/main/pg_hba.conf on host machine for access to pgsql database from your app containers. And check log files for pgsql and auth on host machine.