And I’m getting this error when a I’m trying part of rest call that lead to database connection and data :
Caused by: org.postgresql.util.PSQLException: Connection to localhost:5433 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
For information, I’m succeeding to connect to the postgresql DB in the container with a local pgAdmin
Thanks in advance for your help because I don’t succeed to find reason/solution even with lot of research. I certainly forget one little detail… (I hope).
I can ensure, I don’t get any error when I’m launching the run commands :-/
I tried with fixed IP address, but as soon as I’m using -net option (and so cannot use -p for 8080) I cannot access anymore my api with a postman to the address : http://localhot:8080/myapi/…
And when I’m looking in Kitematic, I have indeed no configuration for Port section (but for my container postgresql, I have one) :-/