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:
Tobias 2022-03-30 16:17:39 +02:00 committed by GitHub
parent aba60f0c6a
commit eff5b9c9f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
```
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.