Summary
The user is facing issues connecting pyairbyte in an airflow dag inside a docker container to a Postgres server on the host machine. They have tried adding extra_hosts in docker-compose yaml and setting the host value in PostgresCache Constructor to host.docker.internal, but the connection is still not working.
Question
I guys, I’m running pyairbyte in an airflow dag inside a docker container using docker-compose. I have a postgres server on my host local machine that am trying to connect to as PostgresCache. I’ve added extra_hosts:
- “host.docker.internal:host-gateway” to my docker compose yaml and provided a host value of host.docker.internal in my Postgrescache Constructor. However, it’s still not able to connect to Postgres on the host machine. Some direction would be greatly appreciated. Thanks
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.