bpatrik / pigallery2

A fast directory-first photo gallery website, with rich UI, optimized for running on low resource servers (especially on raspberry pi)
http://bpatrik.github.io/pigallery2/
MIT License
1.82k stars 210 forks source link

Stop using `VOLUME` in the Dockerfile #777

Closed nk9 closed 1 month ago

nk9 commented 1 year ago

Describe the bug

Dockerfiles have a VOLUME directive, but it's quite problematic and has no benefits over describing the volumes at runtime using -v or docker compose.

The recommended way to use piGallery2 with Docker is to use the docker-compose.yml file, which declares the volumes itself. Given that, it may be possible to just remove the VOLUME directive entirely.

bpatrik commented 1 year ago

Hi,

Thank you for the notice! Can send a PR fixing the docker build files and the compose files that removes volumes from the build files, but keeps the current compose behavior? (I mean keeps exposing config and images folder)

-- Sorry for being brief, sent from my phone.

On Fri, 24 Nov 2023, 17:17 Nick Kocharhook, @.***> wrote:

Describe the bug

Dockerfiles have a VOLUME directive, but it's quite problematic and has no benefits over describing the volumes at runtime using -v or docker compose.

The recommended way to use piGallery2 with Docker is to use the docker-compose.yml file, which declares the volumes itself. Given that, it may be possible to just remove the VOLUME directive entirely.

— Reply to this email directly, view it on GitHub https://github.com/bpatrik/pigallery2/issues/777, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZKA5RZJDHUPR6PFBBDG5LYGDCAFAVCNFSM6AAAAAA7ZKWPBOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDSOJVGM3TONQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>