elpaso/qgis-server-docker

docker compose failing to start

Closed this issue · 1 comments

Wanting to try this container, I get:

[richard@oost qgis-server-docker (production)]$ docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services: 'qgis-server'
[richard@oost qgis-server-docker (production)]$ docker-compose --version
docker-compose version 1.25.0, build unknown

I'm on debian testing, docker version =

$ docker --version
Docker version 20.10.2+dfsg1, build 2291f61

Googling [0] revealed I have to add a version to the yaml file, so adding version: '3.1' works for me:

version: '3.1'

services:
  qgis-server:
    image: "elpaso/qgis-server:latest"
    build: .
    ports:
      - "8082:80"
    volumes:
      - ./qgis_projects:/qgis_projects

[0] https://medium.com/@abhishek.jalan84/error-the-compose-file-docker-compose-yml-is-invalid-because-dc973ceab789
[1] https://docs.docker.com/compose/compose-file/compose-versioning/#version-1

After that indeed it just works on "http://localhost:8082/" sends me to: http://localhost:8082/index.html?#/

And I see the what I call 'QGIS Server Catalog' landing page:

Screenshot-20210203165919-766x765