Docker examples
dylanparry opened this issue · 1 comments
Hi,
I'm trying to create a container using the image from https://store.docker.com/community/images/klokantech/tileserver-php, but there doesn't appear to be any documentation on that page as to how to actually spin up a container and what volume parameters are required.
What I have so far is docker run -it -d -p 80:80 --name="tileserver" klokantech/tileserver-php
, which appears to spin up a container that I can access via http://localhost
and I currently get a message saying there are no maps available on the server (which of course is entirely true) as I haven't mounted any volumes containing my data.
Would you be able to provide a basic example as to how to run TileServer via Docker including what volumes are required in order to give it some files to work with?
Thanks,
Dylan
Figured this one out myself.
docker run -itd -p 80:80 --name="tileserver" -v /path/to/mbtiles_directory:/var/www klokantech/tileserver-php
will do the trick.