Giter VIP home page Giter VIP logo

osm-tiles-docker's Introduction

zavpyj/osm-tiles

This is a Docker image that provides a full stack for working w/ OpenStreetMap data. It can be used to:

  • Initialize PostgreSQL database w/ PostGIS extensions: initdb
  • Import OpenStreetMap data into PostgreSQL database: import
  • Optionally pre-generate tiles: render
  • Serve pre-generated (if available) and dynamically generated tiles from Apache, renderd and mapnik via a Leaflet interface: startservices
  • Serve exclusively pre-generated tiles from Apache via a Leaflet interface: startweb

Background

This image is adapted from ncareol/osm-tiles-docker, which is based on homme/openstreetmap-tiles-docker, which is based on the Switch2OSM instructions.

It runs Ubuntu 16.04 (Xenial) and is based on phusion/baseimage-docker. It includes:

  • PostgreSQL 9.5
  • PostGIS extensions
  • Apache 2.4
  • osm2pgsql
  • mapnik
  • openstreetmap-carto, a CartoCSS template (mapnik style) for OpenStreetMap data
  • mod_tile, an Apache module that also provides scripts for rendering tiles

Usage

To build this image:

$ docker build -t zavpyj/osm-tiles .

Command reference is available in help.txt or by running the image:

$ docker run --rm zavpyj/osm-tiles

Atomic Usage

To persist the postgresql database and the generated tiles, it is advised to create beforehand a docker's named volume (mandatory to persist on Windows OS):

$ docker volume create --name nvpostgisdata -d local
$ docker volume create --name nvtiles -d local

Using Docker Compose and a dedicated docker-compose.yml configuration file, zavpyj/osm-tiles is even simpler to use:

$ docker-compose run --rm app-osm initdb
$ docker-compose run --rm app-osm import
$ docker-compose run --rm app-osm render
$ docker-compose up -d

Direct Usage

Initialise if not already done (initdb+import+render) and Start OSM server (startservices)

$ docker-compose -f osm.yml up -d

osm-tiles-docker's People

Contributors

erikj avatar zavpyj avatar davidglassborow avatar homme avatar joeferner 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.