Connecting Postgres Source in Container

Summary

Instructions on connecting to a Postgres source running in a container with port forwarding from the container to the host.


Question

Hi, How to connect a postgres source if it is running in a container? A port is forwarded from the container to the host: 0.0.0.0:5432



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

['postgres', 'container', 'port-forwarding', 'airbyte-connector']

Use localhost or the host.docker.internal

Unfortunately I’m getting an error:
State code: 08001; Message: The connection attempt failed.

scenario with localhost works well for a docker deployment (deprecated method), but for k8s - not working (may be for me)