Solved
Docker can't connect to PostgreSQL
Hello,
I have built the different doocker image.
When i try to run my docker-compose-postgresql.yml
I have an issue stating:
postgresql-init_1 | psql: error: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
postgresql-init_1 | Is the server running on that host and accepting TCP/IP connections?
postgresql-init_1 | connection to server at "localhost" (::1), port 5432 failed: Cannot assign requested address
postgresql-init_1 | Is the server running on that host and accepting TCP/IP connections?
postgresql-init_1 | [06-09-22 13:03:33] [INFO] Postgres is unavailable - Waiting...
My PostgreSQL server is running and i can even connec to It using pgAdmin4 on those port.
Does anyone have a clue?

