Code Monkey home page Code Monkey logo

mapserver-docker's Introduction

Mapserver in Docker

This is an Ubuntu derived image containing MapServer running under the Nginx web server as a FastCGI service. Mapserver is compiled with a broad range of options, including a comprehensive version of GDAL.

Each branch in the git repository corresponds to a supported Map server version (e.g. 7.0.1) with the master branch following MapServer master. These branch names are reflected in the image tags on the Docker Hub.

Usage

The HTTP endpoint for the MapServer mapserv CGI binary is the root URL at /. This can be tested by mapping the web server's port 80 on the container to port 8080 on the host:

docker run -p 8080:80 geodata/mapserver

You can then test using the included example mapfile by pointing your browser at http://localhost:8080/?map=/usr/local/share/mapserver/examples/test.map&mode=map.

Other than the test mapfile located at /usr/local/share/mapserver/examples/test.map no other MapServer configuration is provided: you will need to provide appropriate mapfiles and ancilliary configuration files (e.g. templates) for running Mapserver, either via volume or bind mounts or in a derived image. E.g. assuming you have the mapfile 'my-app.map' in the current working directory, you could mount it as:

docker run -v $(pwd):/maps:ro -p 8080:80 geodata/mapserver

You will then be able to access the map from your host machine at http://localhost:8080/?map=/maps/my-app.map&mode=map.

mapserver-docker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mapserver-docker's Issues

How to enable CORS?

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.