Scripts and documentation for setup, run and maintenance of open streetmap tile server. The tileserver is based on several docker container
the docker image includes the psql database with GIS extensions
the docker image includes scripts for:
- initial import of osm database
- periodical updates of osm database
the docker image includes following services:
- mapnik renderer and stypesheets
- tirex, controls the renderer
- apache - webserver
- modtile - apache plugin for tile server
osm tileserver needs several docker volumes for persistent storage of files
used from image tileserver_db and stores the psql database
used from image tileserver_scripts. It stores part of the database in separate file to increase performance during initial import and updates. The files are required for updates of database.
this volumes is a storage for rendered tiles
checkout sources
git clone [email protected]:OpenSeaMap/osm-tileserver.git
cd osm-tileserver/
git checkout bravo
git submodule update --init
update local repository
cd osm-tileserver/
git fetch --all
git pull
git submodule update --recursive
cd src_tileserver_db/
./scripts/docker-service.sh build
./scripts/docker-service.sh start
download compressed osm database
cd src_tileserver_scripts/
mkdir src_tileserver_scripts$ mkdir -p volumes/download
wget -c https://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/pbf/planet-latest.osm.pbf -O volumes/download/planet-latest.osm.pbf
wget -c https://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/pbf/planet-latest.osm.pbf.md5 -O volumes/download/planet-latest.osm.pbf.md5
build container and start import
cd src_tileserver_scripts/
./scripts/docker-service.sh build
./scripts/docker-service.sh start
./scripts/docker-service.sh connect
./scripts/initial-import.sh download/planet-latest.osm.pbf
cd src_tileserver
scripts/docker-service.sh build
scripts/docker-service.sh start