Tvheadend can run isolated from other host processes in a Docker container. The official Tvheadend container can be pulled from the GitHub container repo:
There is also an established community container from the linuxserver.io team:
https://fleet.linuxserver.io/image?name=linuxserver/tvheadend