The OpenStreetMap Tile Server in a Docker container
Branch: master
Clone or download
Pull request Compare This branch is 20 commits ahead of erikj:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apache2
postgresql Move to more modern ubuntu, use postgresql 9.3 Jul 11, 2014
renderd Add a runit service for Postgresql Mar 27, 2014
.dockerignore
CHANGELOG.md CHANGELOG: cleanup Mar 30, 2016
Dockerfile reduce default OSM_IMPORT_CACHE to a more manageable 40 (MB) Mar 24, 2016
LICENSE per discussion w/ @topher800, add open-source license: GPL Mar 17, 2016
README.md
datasource-settings.sed
help.txt add startweb command to start only Apache2, and not database and rend… Mar 24, 2016
index.html whitespace; #2 Oct 19, 2015
mod_tile.conf
mod_tile.load
postgresql.conf.sed postgresql config: set work_mem to 512MB; Oct 27, 2015
renderd.conf.sed
run.sh
settings.sed Initial commit Mar 4, 2014
syslog-ng.conf Configure renderd and postgres to log via syslog-ng Mar 27, 2014

README.md

ncareol/osm-tiles

ncareol/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

Background

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

ncareol/osm-tiles runs Ubuntu 14.04 (Trusty) and is based on ncareol/baseimage, which is an adaptation of phusion/baseimage-docker. It includes:

  • PostgreSQL 9.3
  • PostGIS extensions
  • Apache 2.2
  • osm2pgsql
  • mapnik
  • mod_tile, an Apache module that also provides scripts for rendering tiles

Source code is available on GitHub: https://github.com/ncareol/osm-tiles-docker

Docker image is available on Docker Hub: https://hub.docker.com/r/ncareol/osm-tiles

Usage

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 ncareol/osm-tiles

Issues

Issues can be reported on GitHub: https://github.com/ncareol/osm-tiles-docker/issues

License

GPLv3