I am trying to connect GeoServer to a PostGres Database with PostGIS extensions installed, but I need to use the host name becauuse the IP address may change. I am running geoserver and postgis in linked docker containers (see https://docs.docker.com/userguide/dockerlinks/), and restarting a container may result in a change of IP address. However, I have full control over the hostname. My /etc/hosts contains the entry:
If I configure GeoServer to use host 172.17.0.244 it connects fine, but if I specify
postgis if doesn't connect. Is this just not possible with GeoServer, or am I doing something wrong?