Kong Docker with Non-Docker Postgre


#1

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


#2

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.