From eff5b9c9f40afd3a33718ae9b39d02a696c1d7d4 Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 30 Mar 2022 16:17:39 +0200 Subject: [PATCH] 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. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e2f9a9..0b8f617 100644 --- a/README.md +++ b/README.md @@ -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.