A docker compose project to setup an OSM PostGIS database with automatic updates from OSM periodically
 
 
 
 
 
Go to file
Etienne Trimaille c3d0f68f44 add cast to float, change .gitignore 2015-07-30 15:14:47 +02:00
docker-imposm3 add cast to float, change .gitignore 2015-07-30 15:14:47 +02:00
docker-osmupdate add cast to float, change .gitignore 2015-07-30 15:14:47 +02:00
osm_pbf
settings add cast to float, change .gitignore 2015-07-30 15:14:47 +02:00
.gitignore add cast to float, change .gitignore 2015-07-30 15:14:47 +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