kartoza / docker-qgis-server

A dockerfile that contains a running QGIS server
68 stars 31 forks source link

QGIS Server vs ( LTR e 3.0) is not working with layers coming from the PostGis #27

Open indeOWS opened 4 years ago

indeOWS commented 4 years ago

I have run a docker qgis server instance, everything works fine with shapefiles, but when I load layers to Qgis Desktop from PostGis installed in the host and also in a docker container, the getCapabilities are not showing the layers.

I am running an Ubuntu 20.04 LTS host and Qgis Coruña. The containers were created based on the configuration bellow:

Example QGIS Server docker compose

This file will run two QGIS Server instances

QGIS 2.18 LTR - on port 8080 publishing contents of /project

QGIS 3.0 - on port 8081 publishing contents of /project-qgis3

Please read the accompanying README for more details.

db: image: kartoza/postgis:9.6-2.4

volumes:

#- ./pg/postgres_data:/var/lib/postgresql

environment:

qgisserver3:

build : 3,0

image: kartoza/qgis-server:3.0.3 hostname: qgis-server environment:

set to '' if you plan on hosting

# multiple projects on this server an
# then add map=<path to project> to your GET
# requests
- QGIS_PROJECT_FILE=''
# 0 = highest level, shows all messages
# 5 = very quiet
- QGIS_SERVER_LOG_LEVEL=0

volumes: