marcopeocchi / yt-dlp-web-ui

A terrible web ui for yt-dlp. Designed to be self-hosted.
Mozilla Public License 2.0
657 stars 67 forks source link

UID, GID, and UMASK arguments for container #112

Closed tonyhardcode closed 3 weeks ago

tonyhardcode commented 6 months ago

Is it possible to add these arguments to the container so downloaded files can be created under the user, group and umask specified? Would help with permission issues on the host.

marcopeocchi commented 6 months ago

For the files being created by a certain user, pass the --user $UID:$GID flag to docker.

In order to find the correct UID-GID run these commands:

# UID
id -u your-user
# GID
id -g your user

then docker run -d --name ... --user UID:GID

Regarding the umask, this variable is up to yt-dlp itself. It could be added to the backend, i'll work on this.

TheRealGramdalf commented 5 months ago

For docker compose you can use the service-level element user:

services:
  ytdlp-ui:
    user: $UID:$GID
    image: ...