From 43439177d1af7f932687719fc6560c3d11401291 Mon Sep 17 00:00:00 2001 From: remche Date: Mon, 29 Aug 2016 17:09:03 +0200 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index eff2b5b..8c441c0 100644 --- a/README.md +++ b/README.md @@ -3,19 +3,21 @@ Docker image based on nginx official one for [sigal](http://sigal.saimon.org/en/latest/) gallery. Run with : + docker run -p 80:80 -v /path/to/your/pictures/:/pictures --name sigal -d remche/sigal -default configuration : -- put gallery in /usr/share/nginx/html. You can use a docker volume if you want it permanent : - docker run -p 80:80 -v /path/to/your/pictures/:/pictures -v sigal-html:/usr/share/nginx/html --name sigal -d remche/sigal -- use the galleria theme ; -- keep original, and symlink to ; +Default configuration use the galleria theme, keep original and put gallery in /usr/share/nginx/html. You can use a docker volume if you want it permanent : + + docker run -p 80:80 -v /path/to/your/pictures/:/pictures -v sigal-html:/usr/share/nginx/html --name sigal -d remche/sigal + +If you want to override this conf, you can use your own sigal.conf.py : -If you want to override this, you can use your own sigal.conf.py : docker run -p 80:80 -v /path/to/your/pictures/:/pictures -v/path/to/your/sigal.conf.py:/opt/sigal.conf.py --name sigal -d remche/sigal -You can set a basic authentication in htpasswd format setting HTPASSWD env variable : +You can set a basic authentication in htpasswd format by setting HTPASSWD env variable : + docker run -p 80:80 -v /path/to/your/pictures/:/pictures -e HTPASSWD='foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.' --name sigal -d remche/sigal + You might then use SSL with [nginx-proxy](https://hub.docker.com/r/jwilder/nginx-proxy/).