Discussion jDownloader Docker

H1f0x

PG First Class
PG Donor
Jan 1, 2019
7
3
8
Reactions
3 0 0
#1
PG Version
> v8
Server Type
Other
EDIT: Me is an idiot! I have not seen the other thread in 3rd Party! Please delete this one! :)

Hi all,

I created an integrated config yml for jDownloader wich works with pg. I have a different download folder for it configured, since its not integrated with the the rest of it, but this can be easily modified in the yml on line on the pg_volumes label if needed. Traefik and Protection by OAuth is supported and working. There is a web interface on :5800 for configuring it. If mobile app is needed, you can configure the additional port "tcp/3129".

Maybe someone needs it :)

Enjoy!

hifox

Code:
- hosts: localhost
  gather_facts: false
  tasks:
    # FACTS #######################################################################

    - name: 'Set Known Facts'
      set_fact:
        pgrole: 'jdownloader-2'
        intport: '5800'
        extport: '5800'
        image: 'jlesage/jdownloader-2'

    # CORE (MANDATORY) ############################################################
    - name: 'Including cron job'
      include_tasks: '/opt/plexguide/containers/_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}}'
          - '/etc/localtime:/etc/localtime:ro'
          - '/home/<USERNAME>/Downloads:/output:rw'

    - name: 'Setting PG ENV'
      set_fact:
        pg_env:
          PUID: 1000
          PGID: 1000

    # 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}}'

    - name: 'Wait 6 Seconds'
      wait_for:
        timeout: 6
 
Last edited: