I am developing an app, and a PostGIS database If I go to
127.0.0.1:8181/geoserver/web/, log in, and "Add new store" with parameters host = localhost and port = 5435, and try to connect, I get "Error creating data store, check the parameters. Error message: Unable to obtain connection: Cannot Create PoolableConnectionFactory (Connection to
127.0.0.1:5435 refused...
Using 127.0.0.1 and/or 5432 instead of "localhost" and/or "5435" gives same error. But I am able to connect to essentially the same PostGIS database where it is not local.
Someone more advanced than I am said that it seems that the geoserver docker container is having a hard time resolving to the local host.
Is it possible to connect Geoserver to a local PostGIS database?