See also Docker-Hub: cyper85/mapnik
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
| env | default value | description |
|---|---|---|
| POSTGRES_DB | postgres | Database-Name |
| POSTGRES_USER | postgres | Database-User |
| POSTGRES_PASSWORD | Database-Password | |
| POSTGRES_HOST | localhost | Database-Hostname |
| POSTGRES_PORT | 5432 | Database-Port |
You can use a volume for the Tile-Cache-Directory: /var/lib/mod_tile
renderd:
cyper85/mapnik:renderd
tyrex
cyper85/mapnik:tyrex
Content type
Image
Digest
Size
564.6 MB
Last updated
over 5 years ago
docker pull cyper85/mapnik