drwitter/osm-tiles
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 an OpenLayers interface:
startservices
- Serve exclusively pre-generated tiles from Apache via an OpenLayers interface:
startweb
This image is adapted from homme/openstreetmap-tiles-docker
, which is based on the Switch2OSM instructions.
drwitter/osm-tiles
runs Ubuntu 16.04 (Xenial) and is based on an empty .
The image is based on an image of ncareol/osm-tiles
(https://hub.docker.com/r/ncareol/osm-tiles). The base image is replaced with an empty Ubuntu (https://hub.docker.com/_/ubuntu/) version 16.04 (https://hub.docker.com/r/library/ubuntu/tags/16.04/) image.
Besides the packages are updated to the newest versions as of 04/12/2018. It includes:
- PostgreSQL
9.6
- PostGIS
2.5
extensions - Apache
2
- osm2pgsql
- mapnik
- mod_tile, an Apache module that also provides scripts for rendering tiles
Source code is available on GitHub: https://github.com/drwitter/osm-tiles-docker
Docker image is available on Docker Hub: https://hub.docker.com/r/drwitter/osm-tiles
Prerequisites, configuration and a demonstration of the complete workflow are available on the wiki.
Command reference is available in help.txt
or by running the image:
$ docker run drwitter/osm-tiles