Readme: Add section about docker + --mbtiles
- Flag: Based on https://tileserver.readthedocs.io/en/latest/installation.html#docker - Port-Change: Once I use the flag, I need to map the port to `8080` to get it running.
This commit is contained in:
parent
aba60f0c6a
commit
eff5b9c9f4
1 changed files with 5 additions and 1 deletions
|
|
@ -39,7 +39,11 @@ An alternative to npm to start the packed software easier is to install [Docker]
|
||||||
docker run --rm -it -v $(pwd):/data -p 8080:80 maptiler/tileserver-gl
|
docker run --rm -it -v $(pwd):/data -p 8080:80 maptiler/tileserver-gl
|
||||||
```
|
```
|
||||||
|
|
||||||
This will download and start a ready to use container on your computer and the maps are going to be available in webbrowser on localhost:8080.
|
This will download and start a ready to use container on your computer and the maps are going to be available in webbrowser on localhost:8080. It will pick the first MBTiles file from the current folder. Use the `--mbtiles` flag to specify the file direclty.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run --rm -it -v $(pwd):/data -p 8080:8080 maptiler/tileserver-gl --mbtiles zurich_switzerland.mbtiles
|
||||||
|
```
|
||||||
|
|
||||||
On laptop you can use [Docker Kitematic](https://kitematic.com/) and search "tileserver-gl" and run it, then drop in the 'data' folder the MBTiles.
|
On laptop you can use [Docker Kitematic](https://kitematic.com/) and search "tileserver-gl" and run it, then drop in the 'data' folder the MBTiles.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue