mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-03 06:03:25 +00:00
Docker volume for uploads #66
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @luckman212 on GitHub.
Sorry if this is a noob question, but I just spun up a transfer.sh instance (Docker) 🎉
I used this command to specify a persistent volume for the uploads:
Is this incorrect? Didn't see any mention anywhere of volumes.
Also, is
/tmpthe right place to map the volume to? It generally should always matchBASEDIR?@paolafrancesca commented on GitHub:
@luckman212 https://github.com/dutchcoders/transfer.sh/blob/main/Dockerfile#L35 there is a
/tmpfolder in the docker image already, that's used for temporary storage by different providers and/or when direct streaming (both for upload and download) of the content of a file cannot be achieved (I plan to review the usage of the tmp folder and avoid it as soon as possible if not totally remove it)said that, as BASEDIR is better to use a different folder name, just change the volume mount point and the environment variable in your command and that will be fine
@luckman212 commented on GitHub:
Got it. Thank you. I changed my run command to