boypt / simple-torrent

☁️ Simple Torrent: a self-hosted remote torrent client (rebranded from Cloud Torrent)
GNU Affero General Public License v3.0
1.01k stars 312 forks source link

Allow setting UID & GID #75

Open rgarrigue opened 4 years ago

rgarrigue commented 4 years ago

Hi there

Would you mind adding the possibility to set the UID & GID for the download directory ? That would allow integrating with other container more easily, enforcing the same user accros the files

You can do that adding an entrypoint script, like this https://github.com/rgarrigue/cozy-docker/blob/master/docker-entrypoint-production.sh#L26-L31

Best regards,

firestrife23 commented 3 years ago

likewise, I'm wary of allowing the container run as "root"

boypt commented 3 years ago

You can put the user option in the compose file, or the --user argument in docker command line, to override the container's user.

The program is not privilege sensetive, in the container I just put it to root to make things easier.