Issue with Volume Management for local_secure_restricted
Storage Option
#521
Labels
local_secure_restricted
Storage Option
#521
I am encountering a problem with volume management when using the
solidnerd/docker-bookstack
image in conjunction with thelocal_secure_restricted
storage option in BookStack. The problem stems from how the Dockerfile declares volumes and the resulting behavior in Docker Compose.Problem Details:
BookStack Storage Option Impact:
local_secure_restricted
storage option, files are stored instorage/uploads/images
andstorage/uploads/files
instead ofpublic/uploads
andstorage/uploads
.Dockerfile Volume Declarations:
docker-compose.yml
.User Volume Mapping Conflicts:
bookstack-storage
, to store all persistent data.VOLUME
declarations, I must explicitly map the corresponding subdirectories (e.g.,public/uploads
andstorage/uploads
) to avoid anonymous volumes.Example workaround in
docker-compose.yml
:/var/lib/docker/volumes/bookstack-storage/_data
).Request for Discussion and Potential Fix:
I would like to discuss potential ways to address this issue. A few ideas include:
Revisiting
VOLUME
Declarations:VOLUME
declarations for/public/uploads
and/storage/uploads
from the Dockerfile. This would allow users to manage all volumes explicitly in theirdocker-compose.yml
files without interference.Environment Variable-Based Volume Control:
/public/uploads
and/storage/uploads
.Improved Documentation:
VOLUME
directive and provide a recommended approach for users wanting to use a single volume (e.g., with thelocal_secure_restricted
option).Conclusion:
This issue complicates the use of
local_secure_restricted
storage in Dockerized setups and creates challenges for those who want to use a single volume for storage. Addressing this would improve usability and scalability for users of this project.Looking forward to hearing your thoughts and discussing possible solutions!
The text was updated successfully, but these errors were encountered: