From 856afd000bd96362aff86d48d548d54a25c68f26 Mon Sep 17 00:00:00 2001 From: Mohammad Naghavi Date: Fri, 12 Feb 2016 09:19:03 +0100 Subject: [PATCH] adding docker notes --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 12ba2a6..6bf5c1b 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,12 @@ This web application is a very simple file browser which can be used effectively together with [nginx's autoindex module](http://nginx.org/en/docs/http/ngx_http_autoindex_module.html). A sample nginx configuration is also included. + +Mainly for demonstration purposes a docker image is also available [here](https://hub.docker.com/r/mohamnag/nginx-file-browser/). +In order to use this docker image, the volume which has to be served should +be mounted under `/opt/www/files/` and port `80` of container shall be mapped +to a proper port on host. A proper run would look like: + +``` +$ docker run -p 8080:80 -v /path/to/my/files/:/opt/www/files/ mohamnag/nginx-file-browser +``` \ No newline at end of file