docker build

This commit is contained in:
David Claeys
2024-07-10 11:30:41 +02:00
parent d00dfc8e24
commit 2fb36b5814
5 changed files with 96 additions and 1 deletions

View File

@ -1,4 +1,27 @@
# epg-info-docker
This repo builds and Dokcer image of [iptv-org/epg](https://github.com/iptv-org/epg)
This repo builds and Docker image of [iptv-org/epg](https://github.com/iptv-org/epg).
The purpose is to make the deployment easier and more suitable for different environments.
## Dependencies
[Node](https://nodejs.org/en)<br>
[pm2](https://www.npmjs.com/package/pm2)<br>
[serve](https://www.npmjs.com/package/serve)<br>
## Docker image
### Paths
An example `channels.xml` is included by default in the image.
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.
### 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 |