improve readme
This commit is contained in:
parent
69dac2c4bf
commit
d34e0d6609
10
README.md
10
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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user