2025-01-26, 08:52 PM
Thanks TheDreadPirate! Both containers are using host networking.
The TVH compose file is:
And the Jellyfin one is:
The 1002 and 1003 user ids correspond to jellyfin and tvheadend, respectively.
The TVH compose file is:
Code:
---
services:
tvheadend:
image: lscr.io/linuxserver/tvheadend:latest
# ghcr.io/tvheadend/tvheadend:latest
container_name: tvheadend
#user: 1003:100
group_add:
- "100"
- "1003"
# We need host network to access hdhomerun
network_mode: 'host'
environment:
# This is the tvheadend user I created
- PUID=1003
- PGID=100
#- TZ=Etc/UTC
- TZ=America/Los_Angeles
- RUN_OPTS= #optional
volumes:
- ${TVHEADEND_CONFIG_DIR}:/config
- CHANGE_TO_COMPOSE_DATA_PATH/tvheadend_recordings:/recordings
restart: unless-stopped
And the Jellyfin one is:
Code:
---
# https://hub.docker.com/r/linuxserver/jellyfin
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1002:100
network_mode: 'host'
group_add:
- "105"
environment:
- PUID=1002
- PGID=100
- TZ=America/Los_Angeles
volumes:
- ${JELLYFIN_CONFIG_DIR}/config/:/config
- ${JELLYFIN_CONFIG_DIR}/cache/:/cache
- CHANGE_TO_COMPOSE_DATA_PATH/Movies:/data/Movies
- CHANGE_TO_COMPOSE_DATA_PATH/TV:/data/TV
- CHANGE_TO_COMPOSE_DATA_PATH/jellyfin_library/:/data/library
ports:
- 8096:8096
- 8920:8920 #optional
- 7359:7359/udp #optional
- 1900:1900/udp #optional
devices:
- /dev/dri:/dev/dri
restart: unless-stopped
The 1002 and 1003 user ids correspond to jellyfin and tvheadend, respectively.