Docker Community Forums

Share and learn in the Docker community.

Connect debezium/zookeeper image to local Postgres database

Hi all,

I am a novice at Docker and I am trying to implement Postgres Change Data Capture with Debezium, according to this article. I am using Docker desktop for Mac OS. I am running Debezium from a container debezium/zookeeper. However, I want to use an existing Postgres database, that is running on my local machine (same as the dockerhost). So my question is:

How can I connect the debezium/zookeeper container to my local Postgres database?

I am looking for a solution where I do not have to flush out the data from the database and mount it to a volume.

Thanks in advance!