Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we go about adding PostgreSQL #494

Open
Toylerrr opened this issue Nov 19, 2022 · 3 comments
Open

How do we go about adding PostgreSQL #494

Toylerrr opened this issue Nov 19, 2022 · 3 comments

Comments

@Toylerrr
Copy link

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

@reyemb
Copy link

reyemb commented Oct 3, 2024

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

@Toylerrr
Copy link
Author

Toylerrr commented Oct 3, 2024

No I moved on to Lizmap stack instead

@reyemb
Copy link

reyemb commented Oct 3, 2024

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.

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

No branches or pull requests

2 participants