docker container for qgis 3 server using instructions of https://docs.qgis.org/testing/en/docs/training_manual/qgis_server/install.html
- docker: https://docs.docker.com/install/linux/docker-ce/ubuntu/
- docker-compose: https://docs.docker.com/compose/install/#install-compose
You can run the command:
git clone https://gitlab.com/juusechec/docker-qgis-server
cd docker-qgis-server
docker-compose up
Next, open the resource:
http://localhost:8080/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
For more specific documentation about docker-compose read https://docs.docker.com/compose/reference/overview/
The docker command to use the container:
docker run \
-d \
-p 8080:8080 \
--name=qgis-server \
-v projects:/home/qgis/projects \
qgisco/qgis-server:latest
Optionally you can use some examples in docker-compose:
curl -sSL https://github.com/raw/qgisco/docker-qgis-server/master/examples/docker-compose-with-postgres.yml > docker-compose.yml
docker-compose up
See examples forder for more case of use.
Docker container image is available in:
You can put new projects in directory projects and use a URL like:
http://localhost:8080/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/world.qgs&SERVICE=WMS&REQUEST=GetCapabilities
Change the param "MAP" to new path like MAP=/home/qgis/projects/my_new_project.qgs where my_new_project.qgs is a file in a path projects out of container.
- Please create a new issue: https://github.com/qgisco/docker-qgis-server/issues/new