docker-qgis-server icon indicating copy to clipboard operation
docker-qgis-server copied to clipboard

How do we go about adding PostgreSQL

Open Toylerrr opened this issue 3 years ago • 3 comments

I tried adding the QGIS_SERVER_LANDING_PAGE_PROJECTS_PG_CONNECTIONS var but it wouldn't connect to my server

Toylerrr avatar Nov 19 '22 06:11 Toylerrr

Stuck on that problem as well, did you find a solution?

reyemb avatar Oct 03 '24 11:10 reyemb

No I moved on to Lizmap stack instead

Toylerrr avatar Oct 03 '24 15:10 Toylerrr

Thank you for replying.

In the meantime I have found a solution by using service files.

Using the same service file in qgis-desktop and qgis-server fixed the problem for me.

my docker-compose.yml looks like:

services: qgis-server: image: camptocamp/qgis-server ports: - "8380:80" volumes: - ./qgis:/etc/qgisserver - ./pg_service.conf:/etc/postgresql/pg_service.conf environment: - PGSERVICEFILE=/etc/postgresql/pg_service.conf - QGIS_SERVER_LOG_LEVEL=DEBUG

Maybe this helps other people who are stumpling here as well.

reyemb avatar Oct 03 '24 16:10 reyemb