qgis / qgis-docker

Official Docker image for QGIS Server and Desktop
GNU Affero General Public License v3.0
67 stars 21 forks source link

Can't get layers from pg #68

Open PetyaOgurkin opened 2 years ago

PetyaOgurkin commented 2 years ago

I have postgis on my windows machine and I tried different configurations for pg_service.conf but layers from pg doesnt load.

[gis]
dbname=gis
host=localhost / host.docker.internal / postgis (for docker container) 
port=5432
user=postgres
password=postgres

I have an assumption that this is because of the parameter host=localhost in .qgs file but I'm not sure. I don't know what to do. Help me please.