# Access Postgres DB outside of container

**URL:** <https://support.openanalytics.eu/t/access-postgres-db-outside-of-container/2711>\
**Category:** ShinyProxy\
**Created:** [January 30, 2024, 6:49am UTC](https://support.openanalytics.eu/t/access-postgres-db-outside-of-container/2711 "2024-01-30T06:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coenraad](https://support.openanalytics.eu/letter_avatar_proxy/v4/letter/c/9fc29f/32.png) [@Coenraad](https://support.openanalytics.eu/u/Coenraad)\
**Post date:** [January 30, 2024, 6:49am UTC](https://support.openanalytics.eu/t/access-postgres-db-outside-of-container/2711/1 "2024-01-30T06:49:08Z")

</div>

Hi,

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?

---

<div class="post-metadata">

**Author:** ![dingo](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/dingo/32/332_2.png) [@dingo](https://support.openanalytics.eu/u/dingo)\
**Post date:** [February 9, 2024, 11:38pm UTC](https://support.openanalytics.eu/t/access-postgres-db-outside-of-container/2711/2 "2024-02-09T23:38:18Z")

</div>

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.
