based on homme/openstreetmap-tiles-docker
1.8K
based on homme/openstreetmap-tiles-docker source at https://github.com/haroldship/openstreetmap-tiles-docker
This repository contains instructions for building a Docker image containing the OpenStreetMap tile serving software stack. It is based on the Switch2OSM instructions.
The tiles are styled using OSM Bright.
As well as providing an easy way to set up and run the tile serving software it also provides instructions for managing the back end database, allowing you to:
Run docker run haroldship/openstreetmap-tiles-docker for usage instructions.
The container runs Ubuntu 14.04 (Trusty) and is based on the phusion/baseimage-docker. It includes:
This is a work in progress and although generally adequate it could benefit from improvements. Please submit issues on GitHub. Pull requests are very welcome!
These instructions are for linux only, and assume that Docker is up and running.
Make a working directory.
mkdir osm
cd osm
Make a directory to contain the import file.
mkdir import
cd import
Download the import file. You can use any OSM PBF file, but it is important to name it import.pbf.
curl -o import.pbf http://download.geofabrik.de/asia/israel-and-palestine-latest.osm.pbf
Move back to working directory.
cd ..
Run the image, with help.
docker run -it haroldship/openstreetmap-tiles-docker help
If everything goes well, then there are 3 steps:
Initialize: It is important to get the path to the PostgreSQL data directory correct.
mkdir data
docker run -v $PWD/data:/var/lib/postgresql \
-it haroldship/openstreetmap-tiles-docker \
initdb startdb createuser createdb
Import: It is important to get the path to the import directory correct. This step can take a long time, depending on how large a database you are importing.
docker run -v $PWD/import:/data -v $PWD/data:/var/lib/postgresql \
-it haroldship/openstreetmap-tiles-docker startdb import
Start the services.
docker run -v $PWD/data:/var/lib/postgresql \
-d -P haroldship/openstreetmap-tiles-docker startdb startservices
Content type
Image
Digest
Size
1.5 GB
Last updated
over 10 years ago
docker pull haroldship/openstreetmap-tiles-docker