From d34e0d66093ae8ff6abf2615e3e1872031cb3f55 Mon Sep 17 00:00:00 2001 From: Greg Date: Fri, 18 Feb 2022 14:58:41 +0000 Subject: [PATCH] improve readme --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c54efca..520485a 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ docker run \ ### 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: +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 `run` AND `import` as the Lua script needs to be run: ``` docker run \ @@ -64,13 +64,17 @@ docker run \ -e NAME_STYLE=test.style -e NAME_MML=project.mml -e NAME_SQL=test.sql - -v /home/user/openstreetmap-caro-modified:/home/renderer/src/openstreetmap-carto \ + -v /home/user/openstreetmap-carto-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` +If you do not define the "NAME_*" variables, the script will default to those found in the openstreetmap-carto style. + +Be sure to mount the volume during `run` with the same `-v /home/user/openstreetmap-carto-modified:/home/renderer/src/openstreetmap-carto` + +If you do not see the expected style upon `run` double check your paths as the style may not have been found at the directory specified. By default, `openstreetmap-carto` will be fetched if a style cannot be found ## Running the server