What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Guides rclonebrowse [ community app ]

MrDoob

Administrator
Project Manager
Donor
1.) cd /opt/mycontainers/

2.) nano rclonebrowser.yml

3.) paste the lines below

here the yml.file

Bash:
#!/bin/bash
#
# Title:      PGBlitz (jlesage/mediainfo)
# Author(s):  MrDoob
# URL:        https://pgblitz.com - http://github.pgblitz.com
# GNU:        General Public License v3.0
################################################################################
---
- hosts: localhost
  gather_facts: false
  tasks:
    # FACTS #######################################################################
    - name: 'Set Known Facts'
      set_fact:
        pgrole: 'rclonebrowser'
        intport: '5800'
        extport: '5808'
        intport2: '5900'
        extport2: '5909'
        image: 'romancin/rclonebrowser:latest'

    # CORE (MANDATORY) ############################################################
    - name: 'Including cron job'
      include_tasks: '/opt/communityapps/apps/_core.yml'

    # LABELS ######################################################################
    - name: 'Adding Traefik'
      set_fact:
        pg_labels:
          traefik.frontend.auth.forward.address: '{{gauth}}'
          traefik.enable: 'true'
          traefik.port: '{{intport}}'
          traefik.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'

    - name: 'Setting PG Volumes'
      set_fact:
        pg_volumes:
          - '/opt/appdata/{{pgrole}}:/config'
          - '{{path.stdout}}:{{path.stdout}}'
          - '/mnt/unionfs:/unionfs:rw'
          - '/mnt:/mnt:rw'
          - '/etc/localtime:/etc/localtime:ro'

    - name: 'Setting PG ENV'
      set_fact:
        pg_env:
          PUID: '1000'
          PGID: '1000'
          TZ: '${TZ}'
         
    # MAIN DEPLOYMENT #############################################################
    - name: 'Deploying {{pgrole}}'
      docker_container:
        name: '{{pgrole}}'
        image: '{{image}}'
        pull: yes
        published_ports:
          - '{{ports.stdout}}{{extport}}:{{intport}}'
        volumes: '{{pg_volumes}}'
        env: '{{pg_env}}'
        restart_policy: unless-stopped
        networks:
          - name: plexguide
            aliases:
              - '{{pgrole}}'
        state: started
        labels: '{{pg_labels}}'
4.) pgblitz

5.) 5 - 2 - 1 - rclonebrowser - deploy

6.) https://rclonebrowser.yourdomain.anyelse
 
Last edited:

MrDoob

Administrator
Project Manager
Donor
@McKentin

here the last one :D

Request done :D
 

McKentin

Blitz 3rd Class
Awesome you work so fast! @MrDoob. I think PGblitz is the best all in one solution now for not so skilled linux users lol :D and offcourse for experts like you.

Only a little error in the title :p
 

MrDoob

Administrator
Project Manager
Donor
but this one will not pushed to github ;)
 

timekills

Blitz General
Staff
Donor
@MrDoob Wouldn't the PGBlitz location for rclone.conf (i.e. /opt/appdata/plexguide/rclone.conf ) need to be ported through to the docker container for it to read the host RClone files and locations?

This is a great port of Rclone Browser, but as configured I'm not able - or certain how to - view the host Rclone mounts.
 

timekills

Blitz General
Staff
Donor
@MrDoob Wouldn't the PGBlitz location for rclone.conf (i.e. /opt/appdata/plexguide/rclone.conf ) need to be ported through to the docker container for it to read the host RClone files and locations?

This is a great port of Rclone Browser, but as configured I'm not able - or certain how to - view the host Rclone mounts.
I made a port that includes the line:
- '/opt/appdata/plexguide:/host_rcloneconf_folder:ro'
in the "pg_volumes" section.

When you go to File-Preferences you can select the PGBlitz (host) rclone.conf from that folder and it will show the host Rclone mounts.

As above, I ported it through as Read Only (RO) so no changes will be made to the host from the Docker container.

rclonebrowser_host.png

@MrDoob if you want, I can push that to the main Community App repo you created, but I wanted to give you a chance to try it out first and see what you think.
 

MrDoob

Administrator
Project Manager
Donor
Yes you can push it to the community apps

;)
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Development Donations

 

Trending

Top