Allow options to be passed to the docker + document it (close #87)
This commit is contained in:
+1
-1
@@ -27,4 +27,4 @@ VOLUME /data
|
|||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["/usr/src/app/run.sh"]
|
ENTRYPOINT ["/usr/src/app/run.sh"]
|
||||||
|
|||||||
+1
-1
@@ -9,4 +9,4 @@ VOLUME /data
|
|||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["node", "/usr/src/app/", "-p", "80"]
|
ENTRYPOINT ["node", "/usr/src/app/", "-p", "80"]
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ When running docker image, no special installation is needed -- the docker will
|
|||||||
|
|
||||||
Just run ``docker run -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl``.
|
Just run ``docker run -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl``.
|
||||||
|
|
||||||
|
Additional options (see :doc:`/usage`) can be passed to the TileServer GL by appending them to the end of this command. You can, for example, do the following:
|
||||||
|
|
||||||
|
* ``docker run ... klokantech/tileserver-gl my-tiles.mbtiles`` -- explicitly specify which mbtiles to use (if you have more in the folder)
|
||||||
|
* ``docker run ... klokantech/tileserver-gl --verbose`` -- to see the default config created automatically
|
||||||
|
|
||||||
npm
|
npm
|
||||||
===
|
===
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user