A docker compose project to setup an OSM PostGIS database with automatic updates from OSM periodically
 
 
 
 
 
Go to file
Tim Sutton 1b4b40b5ce Remove volume specification in imposm dockerfile 2015-07-30 14:47:09 +02:00
docker-imposm3 Remove volume specification in imposm dockerfile 2015-07-30 14:47:09 +02:00
docker-osmupdate Updated readmes and refactored base_pbf to osm_pbf 2015-07-30 12:36:07 +02:00
osm_pbf Updated git ignore to keep osm_pbf in git but ignore pbf and state files. Updated osm_pbf readme 2015-07-30 12:43:23 +02:00
settings Updated readmes and refactored base_pbf to osm_pbf 2015-07-30 12:36:07 +02:00
.gitignore Updated git ignore to keep osm_pbf in git but ignore pbf and state files. Updated osm_pbf readme 2015-07-30 12:43:23 +02:00
docker-compose.yml Rather build images for now 2015-07-30 12:45:27 +02:00
readme.md Remove volume specification in imposm dockerfile 2015-07-30 14:47:09 +02:00

readme.md

Copy an OSM file (.pbf) and its state file(.state.txt) into base-pbf. The state file contains the timestamp of the OSM file. You can add a polygon file for the clipping. Check that a *.json is present in 'settings' for the mapping.

docker-compose build docker-compose up

You should read the documentation about [docker-imposm] (https://github.com/gustry/docker-imposm3) and docker-osmupdate for settings.

Example usage

In this example we will set up an OSM database for South Africa that will poll for updates every hour.

First fetch the latest South Africa osm binary dump file (.pbf) and state file. I will write the example as generically as possible so that you can substitute your own country or region here.

mkdir osm
cd osm
wget -c -O country.pbf http://download.openstreetmap.fr/extracts/africa/south_africa.osm.pbf
wget -c -O country.state.txt http://download.openstreetmap.fr/extracts/africa/south_africa.state.txt