I have Jellyfin running on Docker and recently connected it to Tailscale so I could watch my Movies from anywhere. The Issue is that I also want to access Jellyfin from my Amazon FireTV which doesn’t come with a Tailscale App to connect it to its network. So I need to find a way to make Jellyfin available in my home network again while maintaining the Tailscale connection. Basically I’m looking for a way to have Jellyfin in Tailscale while also Exposed via port :8096 on my Ubuntu server.
I’m not sure whether that would be possible by changing the network_mode to service:tailscale and ‘host’ (although I’ve read that that’s not possible) or some other network configuration work around.
Here is the yaml file I deploy the stack with so you can see my current setup.
version: "3.9"
networks:
frontend:
external: true
services:
tailscale:
image: tailscale/tailscale:latest
container_name: tailscale
hostname: jellyfin
environment:
- TS_AUTHKEY=xxxxxxxx
- TS_SERVE_CONFIG=/config/jellyfin.json
- TS_STATE_DIR=/var/lib/tailscale
volumes:
- /home/ubuntu/tailscale/config:/config
- /home/ubuntu/tailscale:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped
networks:
- frontend
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
network_mode: service:tailscale
depends_on:
- tailscale
environment:
TZ: "Europe/Berlin"
volumes:
- /home/ubuntu/jellyfin/config:/config:rw
- /home/ubuntu/jellyfin/media:/mnt:rw
restart: on-failure:3