David Claeys 2da2e0e4ab
All checks were successful
Build docker container / build (push) Successful in 7m14s
edit readme
2024-10-04 17:13:48 +02:00
2024-10-04 16:58:16 +02:00
2024-07-10 11:30:41 +02:00
2024-10-04 16:58:16 +02:00
2024-10-04 17:13:48 +02:00
2024-07-10 11:30:41 +02:00
2024-10-04 16:58:16 +02:00

epg-info-docker

This repo builds and Docker image of iptv-org/epg. The purpose is to make the deployment easier and more suitable for different environments.

The original repository of this image is hosted on https://git.claeyscloud.com/david/epg-info-docker.
A public mirror is available at https://github.com/davidclaeysquinones/epg-info-docker.

Dependencies

Node
pm2
serve

The image is based on node:21-alpine in order to be more lightweight. The pm2 and serve packages are used in order to run the application in the container.

Docker image

Paths

Channels file

An example channels.xml is included by default in the image.

<?xml version="1.0" encoding="UTF-8"?>
<channels>
  <channel site="movistarplus.es" lang="es" xmltv_id="24Horas.es" site_id="24H">24 Horas</channel>
  ...
</channels>

However if you want to configure your own channels you need to provide your own configuration file.
You can do this by creating a mapping in the /config folder.

Custom fixes

Through the ENABLE_FIXES variable custom provider fixes can be applied to the container. By default some fixes are available. If you have suggestions or a problem with them please submit an issue. If for some reason you want to include your own provider fixes this is possible by creation a mapping in the /fixes folder.
The expected structure is /fixes/provider_name/provider_name.config.js.
It is recommended that you take existing provider code as a base for your customisations.

Environment Variables

Variable Description Default
CRON_SCHEDULE CRON expression describing the recurrence for epg retrieval. 0 0,12 * * *
DAYS Describes the desired amount of days in the future for for epg retrieval. 14
MAX_CONNECTIONS The maximum amount of parallel connections that can be established 10
ENABLE_FIXES Some fixes to providers take a long time to be merged into the main branch.
When this option is enabled some of these fixes will also be included.
The source code for these fixes can be seen under the fixes folder.
Recreate the container when changing this variable in order for it to take effect
false

Compose file

version: '3.3'
services:
  epg:
    image: git.claeyscloud.com/david/epg-info:latest
    #image: image: git.claeyscloud.com/david/epg-info:latest:latest
    volumes:
      # add a mapping in order to add the channels file
      - /docker/epg:/config
    ports:
      - 6080:3000
    environment:
      # specify the time zone for the server
      - TZ=Etc/UTC
    restart: unless-stopped

Versions

Description
Docker container image for https://github.com/iptv-org/epg
Readme MIT 228 KiB
Languages
JavaScript 85.5%
Dockerfile 9.8%
Shell 4.7%