Files
docker-sigal/README.md

34 lines
1.2 KiB
Markdown
Raw Normal View History

2016-08-29 15:46:42 +02:00
# docker-sigal
2016-08-29 17:03:23 +02:00
Docker image based on nginx official one for [sigal](http://sigal.saimon.org/en/latest/) gallery.
Run with :
2016-08-29 17:09:03 +02:00
2016-10-08 10:13:50 +02:00
docker run -p 80:80 -v /path/to/your/pictures/:/pictures --name sigal-ct -d remche/docker-sigal
2016-08-29 17:03:23 +02:00
2016-08-29 17:09:03 +02:00
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 :
2016-10-08 10:13:50 +02:00
docker run -p 80:80 -v /path/to/your/pictures/:/pictures -v sigal-html:/usr/share/nginx/html --name sigal-ct -d remche/docker-sigal
2016-08-29 17:09:03 +02:00
If you want to override this conf, you can use your own sigal.conf.py :
2016-08-29 17:03:23 +02:00
2016-10-08 10:13:50 +02:00
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/docker-sigal
2016-08-29 17:03:23 +02:00
2016-08-29 17:09:03 +02:00
You can set a basic authentication in htpasswd format by setting HTPASSWD env variable :
2016-10-08 10:13:50 +02:00
docker run -p 80:80 -v /path/to/your/pictures/:/pictures -e HTPASSWD='foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.' --name sigal-ct -d remche/docker-sigal
2016-08-29 17:09:03 +02:00
2016-08-29 17:03:23 +02:00
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.