Sign inSign up

eidanyosoy/uploader

By eidanyosoy

Updated over 5 years ago

uploader from physk for use with PGBlitz PlexGuide MHA PTS forks

Image
0

1.2K

eidanyosoy/uploader repository overview

Rclone Mount w/ Uploader

Inital Setup

mkdir -p /opt/appdata/uploader/keys

Copy your rclone file to /opt/appdata/uploader Use the following to fix the service file paths

OLDPATH=/opt/appdata/pgblitz/keys/
sed -i "s#${OLDPATH}#/config/keys/#g" /opt/appdata/uploader/rclone.conf

Copy your Service Account keys to /opt/appdata/uploader/keys

Running the container

 docker run -d \
 --name uploader \
 -v /opt/appdata/uploader:/config \
 -v /mnt/unionfs:/unionfs:shared \
 -v /mnt/move:/move \
 --cap-add SYS_ADMIN \
 --device /dev/fuse \
 --security-opt apparmor:unconfined \
 --privileged=true \
 -e PUID=1000 \
 -e PGID=1000 \
 eidanyosoy/uploader:latest

By default a webserver is spawned on port 8080 (internal) which has the Tracker UI (you can disable this using -e "DISABLE_WEB=true") You can use traefik to bind this to a domain using the following in your command

 -l "traefik.enable=true" \
 -l "traefik.frontend.redirect.entryPoint=https" \
 -l "traefik.frontend.rule=Host:tracker.example.com" \
 -l "traefik.port=8080"

otherwise you will need to use -p 56664:8080

Enviroment Vars

VARDefault
PUID911
PGID911
DISABLE_TDRIVE1false
DISABLE_TDRIVE2false
DISABLE_GDRIVEfalse
DISABLE_MERGERFSfalse
DISABLE_WEBfalse
MOVE_BASE/
ENCRYPTEDfalse
ADDITIONAL_IGNORESnull
DISABLE_UNIONFS_CHOWNfalse
DIR_CACHE_TIME2m
VFS_READ_CHUNK_SIZE96M
VFS_CACHE_MAX_AGE675h
VFS_READ_CHUNK_SIZE_LIMIT1G
VFS_CACHE_MODEwrites
BUFFER_SIZE48M
RC_ENABLEDfalse
RC_ADDR0.0.0.0:25975
RC_USERuser
RC_PASSxxx
POLL_INTERVAL5m

RC_ADDR, RC_USER, RC_PASS are required if you set RC_ENABLED The RC commands only apply to the team drive mount.

Uploader

Uploader will look for remotes in the rclone.conf starting with PG, GD, GS to upload with

Default files to be ignored by Uploader are

! -name '*partial~' ! -name '*_HIDDEN~' ! -name '*.fuse_hidden*' ! -name '*.lck' ! -name '*.version' ! -path '.unionfs-fuse/*' ! -path '.unionfs/*' ! -path '*.inProgress/*'

You can add additional ignores using the ENV ADDITIONAL_IGNORES e.g.

-e "ADDITIONAL_IGNORES=! -path '*/SocialMediaDumper/*' ! -path '*/test/*'"

Docker-Compose

version: "3"
services:
  uploader:
    container_name: uploader
    image: physk/rclone-mergerfs:latest
    privileged: true
    cap_add:
      - SYS_ADMIN
    devices:
      - "/dev/fuse"
    security_opt:
      - "apparmor:unconfined"
    volumes:
      - "/opt/appdata/uploader:/config"
      - "/mnt/unionfs:/unionfs:shared"
      - "/mnt/move:/move"
    enviroment:
      - "PUID=${PUID}"
      - "PGID=${PUID}"
    labels:
      - "traefik.enable=true"
      - "traefik.frontend.redirect.entryPoint=https"
      - "traefik.frontend.rule=Host:tracker.example.com"
      - "traefik.port=8080"
    networks:
      - traefik_proxy
    restart: unless-stopped

Tag summary

Content type

Image

Digest

Size

35.1 MB

Last updated

over 5 years ago

docker pull eidanyosoy/uploader