Giter VIP home page Giter VIP logo

docker-qgis-server's Introduction

docker-qgis-server

{{< importPartial "https://raw.githubusercontent.com/jancelin/geo-poppy/master/collec/docker-compose.yml" >}}

run 1 or more qgis server with load balancing

  • update your docker-compose.yml
version: '2'
services:
  haproxy:
    image: hypriot/rpi-haproxy
    restart: always
    volumes:
     - /home/pirate/haproxy:/haproxy-override
    links:
     - qgiserver
     - qgiserver1
    ports:
     - "8900:80" 
     - "70:70"
     
  qgiserver:
    image: jancelin/geopoppy:qgis-server2.14LTR
    restart: always
    volumes:
      - "/home/GeoPoppy/lizmap/project:/home"
    expose:
      - 80 
      
  qgiserver1:
    image: jancelin/geopoppy:qgis-server2.14LTR
    restart: always
    volumes:
      - "/home/GeoPoppy/lizmap/project:/home"
    expose:
      - 80
  • HAProxy needs a configuration file that is mapped into the container. Create a file haproxy/haproxy.cfg with the following content.
global
  log 127.0.0.1 local0
  log 127.0.0.1 local1 notice

defaults
  log global
  mode http
  option httplog
  option dontlognull
  timeout connect 5000
  timeout client 10000
  timeout server 10000

listen stats :70
  stats enable
  stats uri /

frontend balancer
  bind 0.0.0.0:80
  mode http
  default_backend aj_backends

backend aj_backends
  mode http
  option forwardfor
  # http-request set-header X-Forwarded-Port %[dst_port]
  balance roundrobin
  server qgiserver qgiserver:80 check
  server qgiserver1 qgiserver1:80 check
  # option httpchk OPTIONS * HTTP/1.1\r\nHost:\ localhost
  option httpchk GET /
  http-check expect status 200
  • up
docker-compose up -d 
  • Test if qgis-server working

http://172.24.1.1:8900/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

  • stats

http://172.24.1.1:70

  • Enjoy

docker-qgis-server's People

Contributors

jancelin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-qgis-server's Issues

jancelin/qgis-server:2.14LTR-wfsOutputExtension not found

Hi, I have pull qgis-server from
docker pull jancelin/qgis-server:2.14LTR-wfsOutputExtension
It is returning me error of not found ,
and after pulling request from docker pull jancelin/qgis-server
when i am doing localhost:port/cgi-bin. It is giving me error of cgi-bin not found.

Can you help me with that ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.