# Kong Docker with Non-Docker Postgre

**URL:** <https://discuss.konghq.com/t/kong-docker-with-non-docker-postgre/2525>\
**Category:** Questions\
**Created:** [December 27, 2018, 4:46am UTC](https://discuss.konghq.com/t/kong-docker-with-non-docker-postgre/2525 "2018-12-27T04:46:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timotius\_Pamungkas](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@Timotius\_Pamungkas](https://discuss.konghq.com/u/Timotius_Pamungkas)\
**Post date:** [December 27, 2018, 4:46am UTC](https://discuss.konghq.com/t/kong-docker-with-non-docker-postgre/2525/1 "2018-12-27T04:46:30Z")

</div>

Hi, I’m currently using Kong on Debian (native installation).  
I’d like to move kong into docker, but the database using existing postgre (non-docker), and also use configuration from existing /etc/kong/kong.conf.

How to achieve this? In docker installation guide, there’s only instruction to use docker postgre.

Thank you

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [January 2, 2019, 5:36pm UTC](https://discuss.konghq.com/t/kong-docker-with-non-docker-postgre/2525/2 "2019-01-02T17:36:03Z")

</div>

You can convert your `/etc/kong/kong.conf` into environment variables in the Docker environment  
Update `KONG_PG_HOST` and related Postgres settings to point Kong to the non-docker Postgres instance.

Please make sure that your Kong Docker container has network connectivity with Postgres instance running outside Docker.
