Setup Jellyfin with DLNA
Setup Jellyfin with docker and enable DLNA
Docker compose file
name: services
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: 1000:1000
ports:
- 8096:8096 # HTTP
- 8920:8920 # HTTPS
- 1900:1900/udp # auto-discovery
- 7359:7359/udp # auto-discovery
network_mode: "host" # this is critical to allow DLNA
volumes:
- /opt/docker/jellyfin/config:/config
- /opt/docker/jellyfin/cache:/cache
- type: bind
source: /opt/music
target: /media
restart: 'unless-stopped'
environment:
- JELLYFIN_PublishedServerUrl=http://music.mydomain.com
extra_hosts:
- 'host.docker.internal:host-gateway'
The easiest way to ensure that it works with DLNA is just to use host network mode as highlighted above.