groenator / iptvboss-docker

iptvboss
37 stars 4 forks source link

IPTVBoss VNC Docker Image

If you are unable to connect to your cloud provider, this is likely because of:

  1. Running the container using root and not using a non-root user
    • DO NOT RUN the container using ROOT user, it won't work.
  2. The container volumes are not mounted correctly, the volume permissions are incorrect
    • Define your own user and set the correct permissions for your volume using your user UID/GID details.

    • This Docker image provides a VNC server with the IPTVBoss application.
    • IPTVBoss is pre-installed via apt in the /usr/lib/iptvboss directory. You can customize its configuration and settings.
    • It includes the option to configure Cronitor to monitor the local cron jobs. View the instructions below to enable Cronitor monitoring.
    • rclone is also installed in the container to allow users to sync their IPTVBoss data to a cloud storage provider.

Prerequisites

Features

Tasks list

Docker Compose (preferred way)

Note:

Use Docker Compose to manage the Docker container. An example docker-compose.yml file is provided:

services:
  iptvboss:
    image: ghcr.io/groenator/iptvboss-docker:latest # The Image has support for both ARM and x86 devices.
    environment:
      PUID: "1000" # Set the user ID for the container.
      PGID: "1000" # Set the group ID for the container.
      TZ: "US/Eastern" #Set the timezone for the container.
      CRON_SCHEDULE: "0 0 * * *" #Set the cron schedule for the cron job that will update the EPG data.
      XC_SERVER: "true" # Set to true to start the XC server on boot. By default the XCSERVER is set to false.
    ports:
      - 8001:8001 # Used by XC Server
      - 5901:5901 # Used by the VNC Server to connect to the container using the VNC client.
      - 6901:6901 # Used by the VNC Server to connect to the container using a web browser.
    volumes:
    # Replace <local_volume> with the local directory where you want to store the IPTVBoss data. E.g., /home/user/iptvboss.
    # Based on the PUID and PGID environment variables the folder permissions are set at runtime.
    - <local_volume>:/headless/IPTVBoss

Adjust the configuration as needed and run:

docker-compose up -d

Change User of running VNC Container

The user can define their own PUID and PGID to run the container as a non-root user. This is useful for security reasons. The user can also set the user and group ID of the host system to run the container as the same user and group of the host system.

docker run -it -p 6911:6901 -p 8001:8001
-v <your-local-volume>:/headless/IPTVBoss
-e PUID=1000 -e PGID=1000
-e CRON_SCHEDULE="* * * * *"
-e TZ=US/Eastern -e XC_SERVER=true
ghcr.io/groenator/iptvboss-docker:latest

Alternatively, you can also set the user and group id using the PUID and PGID environment variables in the docker-compose file as showing above.

Then, run the bellow command:

docker-compose up -d

Beta Version Available!

Please note that this is a beta release and may contain bugs.

A beta version of the IPTVBoss Docker image is available for testing.

It is highly recommended to back up your IPTVBoss data before using the beta version.

To use the beta version, replace the image field from your docker-compose with the iptvboss-docker-beta package with the <version> tag:

services:
  iptvboss:
    image: ghcr.io/groenator/iptvboss-docker-beta:<version>  # Use the beta image with tag
    # ... (rest of your docker-compose configuration)

Example deploying the beta version using docker cli:

docker run -it -p 5901:5901 -p 6901:6901 -p 8001:8001 \
    --name iptvboss \
    -e PUID=1000 -e PGID=1000 \
    # ... (other environment variables) \
    -v <your-local-volume>:/headless/IPTVBoss \
    ghcr.io/groenator/iptvboss-docker-beta:<version>  # Use the beta image with tag

Accessing the VNC Server

Connect to the VNC server using your preferred VNC client or any browser by opening below URL.

To connect to the VNC server using a VNC client, use the following address:

vnc://your-machine-ip:5901

To connect to the VNC server using a web browser, use the following address.

http://<host-ip>:6901/?password=vncpassword.

If you deploy it outside of your locally replace IP with localhost.

The default password is vncpassword. Replace localhost with your actual server IP address.

Override VNC environment variables

The following VNC environment variables can be overwritten at the docker run phase to customize your desktop environment inside the container:

VNC_COL_DEPTH, default: 24
VNC_RESOLUTION, default: 1280x1024
VNC_PW, default: my-pw
VNC_PASSWORDLESS, default: <not set>

Cronitor Integration (Optional)

Prerequisites:

To enable Cronitor monitoring, set the CRONITOR_API_KEY environment variable to your Cronitor API key. Set the CRONITOR_SCHEDULE_NAME environment variable to a custom name for your Cronitor job.

Run it using docker-compose:

services:
  iptvboss:
    image: ghcr.io/groenator/iptvboss-docker:latest # The Image has support for both ARM and x86 devices.
    environment:
      PUID: "1000" # Set the user ID for the container.
      PGID: "1000" # Set the group ID for the container.
      CRON_SCHEDULE: "0 0 * * *" # Set the cron schedule for the cron job that will update the EPG data.
      CRONITOR_API_KEY: "<your_cronitor_api_key>"
      CRONITOR_SCHEDULE_NAME: "My Custom Schedule" # Set a name for your Cronitor.io Job
      XC_SERVER: "true" # Set to true to start the XC server on boot. By default the XCSERVER is set to false.
      TZ: "US/Eastern" #Set the timezone for the container.
    ports:
    - 8001:8001 # Used by XC Server
    - 5901:5901 # Used by the VNC Server to connect to the container using the VNC client.
    - 6901:6901 # Used by the VNC Server to connect to the container using a web browser.
    volumes:
    # Replace <local_volume> with the local directory where you want to store the IPTVBoss data. E.g., /home/user/iptvboss.
    # Based on the PUID and PGID environment variables the folder permissions are set at runtime.
    - <local_volume>:/headless/IPTVBoss

Run the following command to start the container:

docker-compose up -d

Or using the following command:

# Remove the double quotes around CRONITOR_API_KEY value and replace <your_cronitor_api_key> with your actual Cronitor API key.
docker run -it -p 5901:5901 -p 6901:6901 -p 8001:8001
--name iptvboss
-e PUID=1000 -e PGID=1000
-e CRONITOR_API_KEY="<your_cronitor_api_key>"
-e CRONITOR_SCHEDULE_NAME=MyJob
-e CRON_SCHEDULE="* * * * *"
-e XC_SERVER=true
-v <your-local-volume>:/headless/IPTVBoss
ghcr.io/groenator/iptvboss-docker:latest