Skip to content

Mountable VolumesΒΆ

Mountable volumes in Docker allow you to share folders within a docker container with your host machine. This allows you to access these specific files without having to bash into the container and using the terminal to navigate around.

The TVApp2 docker image provides a few different paths that you can mount to your host machine; as outlined below.


πŸ“ /usr/bin/appΒΆ

1.0.0

The mountable volume /usr/bin/app is where TVApp2 files will be placed once the app has been built when your docker container spins up. The files in this folder include:

File Description
πŸ“ node_modules List of all NodeJS packages utilized by TVApp2
πŸ“ www Main storage folder for TVApp2. Contains website files and M3U / EPG synced files
πŸ“„ package.json NodeJS package file
πŸ“„ playlist.m3u8 Generated playlist containing channels
πŸ“„ urls.txt List containing cached URLs utilized by TVApp2
πŸ“„ xmltv.xml EPG guide data in uncompressed XML format
πŸ“„ xmltv.xml.gz EPG guide data in compressed GZ archive
πŸ“„ index.js Main source code file for TVApp2


docker-compose.yml
1
2
3
4
5
6
7
services:
    tvapp2:
        container_name: tvapp2
        image: ghcr.io/thebinaryninja/tvapp2:latest
        restart: unless-stopped
        volumes:
            - ./app:/usr/bin/app # (1)
  1. β„Ή Changing this env variable will change the time for anything related to the TVApp2 docker container.


This folder path can be changed by specifying a new path with the environment variable DIR_RUN

docker-compose.yml
1
2
3
4
5
6
7
services:
    tvapp2:
        container_name: tvapp2
        image: ghcr.io/thebinaryninja/tvapp2:latest
        restart: unless-stopped
        volumes:
            - ./app:/usr/bin/app # (1) (2)
  1. β„Ή Changing this env variable will change the folder within the docker container which stores the fully built TVApp2 files.

  2. This should not be used unless you know what you're doing




πŸ“ /configΒΆ

1.0.0

The mountable volume /config defines where the TVApp2 application will store SSL certificates related to the TVApp2 web interface being ran using https instead of http. The files in this folder include:

File Description
πŸ“ keys Folder which stores the SSL cert and keys
πŸ“„ keys/cert.crt SSL public certificate
πŸ“„ keys/key.crt SSL private key


docker-compose.yml
1
2
3
4
5
6
7
services:
    tvapp2:
        container_name: tvapp2
        image: ghcr.io/thebinaryninja/tvapp2:latest
        restart: unless-stopped
        volumes:
            - ./config:/config # (1) (2)
  1. β„Ή Changing this env variable will change the folder within the docker container which stores the fully built TVApp2 files.

  2. This should not be used unless you know what you're doing