Sign inSign up

cyper85/mapnik

By cyper85

Updated over 5 years ago

Mapnik-Container für OSM-Tile-Server

Image
0

1.4K

cyper85/mapnik repository overview

Mapnik-Tile-Server

See also Docker-Hub: cyper85/mapnik

Installation

You need a PostGIS-Container and an osm2pgsql-Container.

# Create a Network to use the Postgis-Server in an other container
docker network create postgis-net

# Install a postgis-instance
docker run --detach --name test-postgis --network postgis-net postgis/postgis

# Install a osm2pgsql-instance
docker run --env POSTGRES_HOST=test-postgis --name test-osm2pgsql --network postgis-net cyper85/osm2pgsql

# Install a mapnik-instance
docker run --detach --env POSTGRES_HOST=test-postgis --detach --name test-mapnik --network postgis-net --port 80:80 cyper85/mapnik

Or you build your own image from source:

# Download sources
git clone https://github.com/cyper85/mapnik.git
cd mapnik/

# Build it
docker build --tag mapnik .

# Install an instance
docker run --name test-mapnik --network postgis-net mapnik

Additional parameter

envdefault valuedescription
POSTGRES_DBpostgresDatabase-Name
POSTGRES_USERpostgresDatabase-User
POSTGRES_PASSWORDDatabase-Password
POSTGRES_HOSTlocalhostDatabase-Hostname
POSTGRES_PORT5432Database-Port

You can use a volume for the Tile-Cache-Directory: /var/lib/mod_tile

Renderer

renderd: cyper85/mapnik:renderd

tyrex cyper85/mapnik:tyrex

Tag summary

Content type

Image

Digest

Size

564.6 MB

Last updated

over 5 years ago

docker pull cyper85/mapnik