Thumbsup is published as a Docker image called thumbsupgallery/thumbsup. To create a gallery, you will need to mount one or several folders so that the container can access:
- the input folder with photos & videos
- the output folder to write the gallery
- the config file, if using one
docker run -t \ -v "$(pwd):/work" \ -u $(id -u):$(id -g) \ thumbsupgallery/thumbsup \ thumbsup --input /work/media --output /work/gallery
You can of course mount the volumes differently, for example:
docker run -t \ -v /Volumes/photos:/input:ro \ # the input folder can be read-only -v "$(pwd)/website:/output" \ -u $(id -u):$(id -g) \ thumbsupgallery/thumbsup \ thumbsup --input /input --output /output
-targument is for the progress bars to render properly
-uargument is to avoid permission issues, where the generated gallery is owned by an unknown user
Photo dates displayed on the website are based on the current machine timezone.
When running in Docker, this is
GMT. If the timezone is important to you, you should also add
docker run -v /etc/localtime:/etc/localtime [...]
For more details about all the arguments and options available, see the configuration page.