Comments (6)
Regardless of the syntax, I feel like the directories should be created if they're missing for whatever reason to avoid 500 errors.
from shotshare.
Hey @EmberHeartshine, for this pattern, I would actually just mount the /app/storage/app/uploads
folder, that way you don't interfere with any of the framework native directories, while still being able to mount your shots to a directory. For ex. -v /shotshare/uploads:/app/storage/app/uploads
.
from shotshare.
In this instance I specifically made a bind mount because I wanted the files to be on the host filesystem instead of obfuscated away in Docker's volume tree.
from shotshare.
In this instance I specifically made a bind mount because I wanted the files to be on the host filesystem instead of obfuscated away in Docker's volume tree.
So you should be able to use -v to accomplish this, if you specify a path before the colon it will use a path from your host file system, if you just use a string it will be a named volume.
-v /shotshare/uploads:/app/storage/app/uploads
should mount /shotshare/uploads on your host to /app/storage/app/uploads in your container.
from shotshare.
Updated the docs to point to the correct directory (app/storage/app/uploads), I plan to revisit setup process for further simplifications. Additionally, this change will not be backwards compatible (it will only work for new installations where their shotshare_data volume is empty), to fix this you will need to
- Create a new mount at the new path (not shotshare_data)
- Move the old mount elsewhere (ex. /tmp/shotshare_data)
- Manually copy the files from tmp to new volume (cp /tmp/shotshare_data/* /app/storage/app/uploads)
- Drop the old volume
https://github.com/mdshack/shotshare?tab=readme-ov-file#run-in-https-mode
from shotshare.
As noted, however, if you have the entire /app/storage directory mounted external to the docker image you don't have to change anything.
from shotshare.
Related Issues (20)
- Better way to indicate that a shot's title is editable HOT 8
- Ability to hide/privatize uploader name HOT 3
- Ability to choose whether to upload multiple images as a set or as individual shots HOT 4
- Deleted images is still be accessable via direct link HOT 6
- [Enhancement] Store config in a configuration file instead of relying on environment variables HOT 3
- 419 Page expired HOT 16
- Be able to upload an avatar HOT 2
- Image preview embed for Discord et. al. HOT 7
- Blank home page HOT 5
- Sharing link buttons not working HOT 1
- Shot visibility issue HOT 1
- Cloud-based Providers (S3) Support
- Laravel Octane + FrankenPHP
- Optional EXIF Stripping
- "Server Error" HOT 1
- [ERROR] Create user via CLI - could not find driver HOT 1
- Allow videos to be uploaded HOT 1
- User invitations
- Web installer for first time run
- Guest access
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shotshare.