thtsystems / open-visit

Open-source application for visiting scheduling.
MIT License
9 stars 6 forks source link

fix: add pgadmin docker to the same network as postgres #46

Closed JoaoAlem closed 10 months ago

JoaoAlem commented 11 months ago

This PR solves the #45

ernestoresende commented 11 months ago

With this fix in place, what host are you using to connect to the Postgres instance from within PgAdmin?

What I've been doing so far is use host.docker.internal, which resolves to the internal IP used by the host. Does the PR change that?

JoaoAlem commented 11 months ago

This PR change the way you connect between dockers, in this case, the host.docker.internal Using the PG Admin from the docker compose, i can't connect to postgres docker.

In my local machine, even using host.docker.internal is not working, and i'm using docker 20.10 After using ping in my local machine, the docker cannot communicate with host.docker.internal. Adding the dockers to the same network will change this communication and the two dockers will have a way to communicate between them.

The way that we can use the name or container of docker as host, postgres or postgres_container