docker pull qgis/qgis-server:ltr
docker run -v ${pwd}/qgis-server-data:/io/data --name qgis-server -d -p 8010:80 qgis/qgis-server:ltr
Note: if you are using Docker Desktop on Windows, you may need to replace ${pwd}
with ${PWD}
.
./start.sh
http://localhost:8010/ogc/world?LAYERS=countries&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=400&HEIGHT=200&BBOX=-90,-180,90,180
Alternatively, you can use Docker Compose to run the container. You can choose between one of the 2 following options:
docker compose up -d qgis-server-base
docker compose up -d qgis-server-data-default