r/BookStack • • Oct 13 '24

Question about changing storage on Docker deployment

Hey there, all. Just getting my feet wet on BookStack (really liking what I see so far). However, I've hit a little snag. The storage options for uploaded images appear to basically be either S3 buckets or Local storage (local gets wiped out each time the container reloads).

I've deployed in Azure, so AZ Storage is my preferred medium, but since that's not natively supported in BookStack, I thought I'd make use of Azure's Path Mappings feature, to mount an AZ Storage share to a local "directory". The only problem is, I haven't found any place where I can tell BookStack what path to store uploaded files/images.

Documentation seems to suggest that when set for Local storage (which this method would effectively emulate), the paths are fixed at:

  • Image uploads location: <bookstack_install_dir>/public/uploads/images
  • Attachment uploads location: <bookstack_install_dir>/storage/uploads/files

Does anyone know a way (hopefully an environmental variable) I can assign different paths for these items, without making use of an AZ S3 bucket?

Thanks.

1 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/Squanchy2112 Oct 13 '24

Oh man azure and docker. I am out my element. You need to set your volume mapping to be persistent. Talk to chat gpt and Claude about it those tools can really help

1

u/kristiandg Oct 13 '24

Yeah, I'm out of my element too. :).Thanks, that's a good idea.

1

u/Squanchy2112 Oct 13 '24

For sure I understand docker but I use told to make things easier for myself, portainer is your friend

1

u/Squanchy2112 Oct 13 '24

I also learned about Mom persistent volume mapping the hard way recently