Coder Social home page Coder Social logo

docker-mapserver's Introduction

A FastCGI MapServer instance

This image implements a MapServer instance accepting FastCGI connections.

It listens by default on port 9001, and expects MapServer map files and related data to be available in a volume mounted on /data.

Usage

The following will start a MapServer instance listening on port 9001 for FastCGI connections, and serving MapServer data from the directory /some/mapserver/data:

$ docker run \
    --volume=/some/mapserver/data:/data:ro \
	carletes/mapserver

If you want to listen on a different port, use the FCGI_LISTEN_PORT environment variable:

$ docker run \
    --volume=/some/mapserver/data:/data:ro \
	--env=FCGI_LISTEN_PORT=9022 \
	carletes/mapserver

You will need a web server to expose MapServer to your clients via HTTP. The GitHub repository carletes/docker-mapserver-example shows a way of doing it.

Configurable parameters

The following environment variables can set in order to tweak the behaviour of MapServer:

Variable Description Default value
FCGI_LISTEN_ADDRESS Listening address for FastCGI requests 0.0.0.0
FCGI_LISTEN_PORT Listening port for FastCGI requests 9001
FCGI_NPROC Nimber of FastCGI child processes to spawn 1
FCGI_BACKLOG TCP connection backlog for FastCGI requests 1024
FCGI_UID Unix UID of FastCGI process mapserver
FCGI_GID Unix GID of FastCGI process mapserver

All MapServer environment variables may be specified as well. This images runs with the following non-default MapServer environment variables:

MapServer variable Value used in this image
MS_ERRORFILE stderr

docker-mapserver's People

Contributors

carletes avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.