Sign inSign up

carletes/mapserver

By carletes

Updated over 7 years ago

This image implements a MapServer instance accepting FastCGI connections.

Image
0

2.5K

carletes/mapserver repository overview

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:

VariableDescriptionDefault value
FCGI_LISTEN_ADDRESSListening address for FastCGI requests0.0.0.0
FCGI_LISTEN_PORTListening port for FastCGI requests9001
FCGI_NPROCNimber of FastCGI child processes to spawn1
FCGI_BACKLOGTCP connection backlog for FastCGI requests1024
FCGI_UIDUnix UID of FastCGI processmapserver
FCGI_GIDUnix GID of FastCGI processmapserver

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

MapServer variableValue used in this image
MS_ERRORFILEstderr

Tag summary

Content type

Image

Digest

Size

75.2 MB

Last updated

over 7 years ago

docker pull carletes/mapserver