From 1b7986c048abc14dc70b104bcd92ba20f0b0f0d3 Mon Sep 17 00:00:00 2001 From: remche Date: Tue, 30 Aug 2016 09:38:29 +0200 Subject: [PATCH] Added rebuild gallery command to the documentation --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8c441c0..c5c26a1 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,30 @@ Docker image based on nginx official one for [sigal](http://sigal.saimon.org/en/ Run with : - docker run -p 80:80 -v /path/to/your/pictures/:/pictures --name sigal -d remche/sigal + docker run -p 80:80 -v /path/to/your/pictures/:/pictures --name sigal-ct -d remche/sigal + 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 + docker run -p 80:80 -v /path/to/your/pictures/:/pictures -v sigal-html:/usr/share/nginx/html --name sigal-ct -d remche/sigal + If you want to override this conf, 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 + docker run -p 80:80 -v /path/to/your/pictures/:/pictures -v/path/to/your/sigal.conf.py:/opt/sigal.conf.py --name sigal-ct -d remche/sigal + 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 + docker run -p 80:80 -v /path/to/your/pictures/:/pictures -e HTPASSWD='foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.' --name sigal-ct -d remche/sigal + You might then use SSL with [nginx-proxy](https://hub.docker.com/r/jwilder/nginx-proxy/). +You can use the following command to regenerate gallery : + + docker exec sigal-ct sigal build + + +Using a cron or incron to run it is a good way to keep your gallery up to date.