GithubHelp home page GithubHelp logo

mapnik's Introduction

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

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

Renderer

renderd: cyper85/mapnik:renderd

tyrex cyper85/mapnik:tyrex

mapnik's People

Contributors

cyper85 avatar

Watchers

James Cloos 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.