Coder Social home page Coder Social logo

cschwarz007 / docker-tvheadend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hetsh/docker-tvheadend

0.0 0.0 0.0 35 KB

Small and simple to set up TV-Headend server inside a docker container.

Home Page: https://hub.docker.com/r/hetsh/tvheadend

License: The Unlicense

Shell 77.05% Dockerfile 22.95%

docker-tvheadend's Introduction

TV-Headend

Super small and simple tvheadend server.

Running the server

docker run --detach --name tvheadend --publish 9981:9981 --publish 9982:9982 hetsh/tvheadend

Stopping the container

docker stop tvheadend

DVB cards

Linux mounts DVB devices at /dev/dvb and /dev/dri, they can be passed to the container with two simple parameters:

--device /dev/dvb --device /dev/dri

Configuring

TVHeadend is configured via its web interface. A configuration wizard will guide you through the initial setup if you run the server for the first time. Remember to mount persistent storage if you want to keep the configuration.

Creating persistent storage

DATA="/path/to/configuration"
mkdir -p "$DATA"
chown -R 1359:1359 "$DATA"

1359 is the numerical id of the user running the server (see Dockerfile). The user must have RW access to the configuration and recordings directory. Start the server with the additional mount flags:

docker run --mount type=bind,source=/path/to/configuration,target=/tvheadend-data ...

Similarly, storage for recordings can be mounted. The path needs to be configured in TVHeadend beforehand:

docker run --mount type=bind,source=/path/to/recordings,target=/path/as/configured ...

Automate startup and shutdown via systemd

The systemd unit can be found in my GitHub repository.

systemctl enable tvheadend --now

By default, the systemd service assumes /apps/tvheadend for configuration and /etc/localtime for timezone. Since this is a personal systemd unit file, you might need to adjust some parameters to suit your setup.

Fork Me!

This is an open project (visit GitHub). Please feel free to ask questions, file an issue or contribute to it.

docker-tvheadend's People

Contributors

cschwarz007 avatar hetsh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.