I have a primary container A, and two secondary containers B1 and B2, and both A and B1 need to connect to B2. Is there a way to make this work without using docker compose?
I’ve been trying to connect to localhost:5432 from B1, but that results in this error:
Could not connect to server: Connection refused\n\tIs the server running on host "localhost" (127.0.0.1) and accepting\n\tTCP/IP connections on port 5432?
This is my current configuration. I’ve checked the postgres instance, and it is ready to accept connections long before hasura attempts to connect, but hasura still fails connect.
I was able to get this working by specifying an explicit name for the postgres instance, instead of relying on the default, implicit localhost name. After naming it postgres, I was able to connect the hasura instance.