Ideas - Flex TV App Request | PlexGuide.com

Ideas Flex TV App Request

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now
M

MrDoob

Guest
1.) cd /opt/mycontainers/

2.) nano flextv.yml

3.) paste the lines below

Bash:
#!/bin/bash
#
# Title:      PGBlitz (digitalhigh/FlexTV)
# Author(s):  Admin9705
# 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: 'flextv'
        intport: '80/tcp'
        extport: '8987'
        image: 'digitalhigh/flextv: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'
          - '/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 - flextv - deploy

6.) https://flextv.yourdomain.anyelse
 
Last edited by a moderator:
  • Like
Reactions: 1 user

Stroodle96

Citizen
Original poster
Feb 21, 2019
12
2
It shows it deploys successfully but I am unable to reach it and the container does not show up in portainer. Thanks for your quick reply!
 

Stroodle96

Citizen
Original poster
Feb 21, 2019
12
2
try now .. i update the yml file
I got it to work by changing "digitalhigh/FlexTV" to Lowercase ('digitalhigh/flextv').
I will try with the latest tag and see if that works still. In the Flex TV discussion a lot of people had issues with the capitol letters.

Thank you so much for your help, I really appreciate it!
 
  • Like
Reactions: 1 user
M

MrDoob

Guest
close

flextv is now in PGCommunity 8.6 uploaded ;)
 
  • Like
Reactions: 1 users

Recommend NewsGroups

      Up To a 58% Discount!

Trending