- Docker and Docker Compose
- Download the data from Geofabrik, e.g.
estonia-latest.osm.pbf
from this page intodata/
directory. (mirror) - Download latest martin release
- Prefetch needed docker images
# You may need to use the older `docker-compose` command instead
docker compose -f dc-simple.yml pull
docker compose -f dc-with-db.yml pull
docker run \
-e JAVA_TOOL_OPTIONS="-Xmx2g" \
-v "${PWD}/data":/data \
ghcr.io/onthegomap/planetiler \
--download --area=estionia --minzoom=0 --maxzoom=14 \
--osm_path=/data/estonia-latest.osm.pbf
# Fix permissions
sudo chown -R $USER:$USER data
# Rename output file for our demo
mv data/output.mbtiles data/estonia.mbtiles
docker run `
-e JAVA_TOOL_OPTIONS="-Xmx2g" `
-v "${PWD}/data":/data `
ghcr.io/onthegomap/planetiler `
--download --area=estionia --minzoom=0 --maxzoom=14 `
--osm_path=/data/estonia-latest.osm.pbf
martin data/estonia.mbtiles
Run Martin locally, and see if you can access the catalog and source info:
Start Nginx proxy at port 8080, Martin, and Maputnik with Docker Compose. View it at http://localhost:8080
docker-compose -f dc-simple.yml up
docker network create dbnet
docker-compose -f dc-with-db.yml up db
docker-compose -f dc-with-db.yml up osm2pgsql