This project provides followings:
- docker-compose.yml that runs OpenStreetMap (OSM) “Standard” tile server
- mod_tile, renderd, Mapnik, osm2pgsql and a PostgreSQL/PostGIS database
- See : Manually building a tile server (18.04 LTS)
- HTML file that shows slippy map (Leaflet) using tile server on localhost
docker-compose build
docker-compose up -d map-database
docker-compose run map-data-util init-db
# First time, `--init` option must be used
docker-compose run map-data-util update-map-data http://download.geofabrik.de/asia/azerbaijan-latest.osm.pbf --init
# If you input map data of other area, change map URL.
# e.g. use following command to input Japanese map data:
# docker-compose run map-data-util update-map-data http://download.geofabrik.de/asia/japan-latest.osm.pbf --init
# Create indices
docker-compose run map-data-util create-indices
# Start renderd
docker-compose up -d tile-renderer
# Run prerenderer
docker-compose run tile-prerenderer
# If you want to watch logs
docker-compose logs -f
docker-compose up -d tile-server
# If you want to watch logs
docker-compose logs -f
Then, the url http://localhost/osm/slippymap.html shows world map.
Browse frontend/sample.html.
The Software is published under the MIT license. See LICENSE file.
Thanks to OND Inc.