Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

geoserver with postgis #67

Open
scdev92 opened this issue Jun 25, 2020 · 0 comments
Open

geoserver with postgis #67

scdev92 opened this issue Jun 25, 2020 · 0 comments

Comments

@scdev92
Copy link

scdev92 commented Jun 25, 2020

I want to get the Geonode/Geoserver running with Kartoza/Postgis with:

docker run -d --name="postgis" kartoza/postgis
docker run --name "geoserver_with_postgis" --link postgis:postgis -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`/data/:/geoserver_data/data -d -p 8080:8080 geonode/geoserver

Adding a new PostGIS store with

Data Source Name: local
Host: localhost
Port: 5432
database: gis
schema: public
user: docker
password: docker

results in the following error:

Error creating data store, check the parameters. Error message: Unable to obtain connection: Cannot create PoolableConnectionFactory (Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)

For testing purposes, I run

docker run -d --name="postgis" kartoza/postgis -p 5432:5432

and can establish a successful connection with pgadmin and qgis from my real local machine. So the postgres service seems to work. Also geoserver works fine with geotiffs.

what's going on here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant