From f4b6eb08506a8c1860a2386c2316aa786fa1be3b Mon Sep 17 00:00:00 2001 From: galewis2 <62433564+galewis2@users.noreply.github.com> Date: Tue, 25 Jan 2022 14:57:18 -0500 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 9551c2f..e6cb7b2 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,22 @@ docker run \ import ``` +### Using an alternate style + +By default the container will fetch openstreetmap-carto if it is not specified. However, you can modify the style at run-time. Be aware you need the style mounted at import as the Lua script needs to be run. The logic lookisn for wilcards in the style directory, so having the same names is not critical: + +``` +docker run \ + -e DOWNLOAD_PBF=https://download.geofabrik.de/europe/luxembourg-latest.osm.pbf \ + -e DOWNLOAD_POLY=https://download.geofabrik.de/europe/luxembourg.poly \ + -v /home/user/openstreetmap-caro-modified:/home/renderer/src/openstreetmap-carto \ + -v openstreetmap-data:/var/lib/postgresql/12/main \ + overv/openstreetmap-tile-server \ + import +``` + +Be sure to mount the volume during `run` with the same `-v /home/user/openstreetmap-caro-modified:/home/renderer/src/openstreetmap-carto` + ## Running the server Run the server like this: