https://github.com/remche/docker-sigal
https://github.com/remche/docker-sigal
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/remche/docker-sigal
- Owner: remche
- License: gpl-3.0
- Created: 2016-08-28T14:51:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T11:19:44.000Z (over 5 years ago)
- Last Synced: 2025-03-24T07:56:58.798Z (about 1 year ago)
- Language: Python
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-sigal
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-ct -d remche/docker-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-ct -d remche/docker-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-ct -d remche/docker-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-ct -d remche/docker-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.