If you own a NAS system, chances are you want it to be able to stream your owned media as well. QNAP does a good job of providing media streaming services but those have limited features. he 2 names which come up often for self hosting streaming videos, movies and TV Series are Plex and Jellyfin. We will cover the comparison between those two in different article but here we are providing a script for you to host plex server on your QNAP device.
version: '3.8'
name: plex
services:
plex:
container_name: plex
image: linuxserver/plex:latest
restart: unless-stopped
ports:
- "32400:32400/tcp"
- "3005:3005/tcp"
- "8324:8324/tcp"
- "32469:32469/tcp"
- "1900:1900/udp"
- "32410:32410/udp"
- "32412:32412/udp"
- "32413:32413/udp"
- "32414:32414/udp"
volumes:
- plex_config:/config
- /share/CACHEDEV2_DATA/Video:/media:ro <-- your media location
- /share/CACHEDEV1_DATA/Multimedia/downloads:/downloads:ro <-- your media location
environment:
- PUID: 1000
- PGID: 1000
- TZ: Etc/UTC
- VERSION: docker
- PLEX_CLAIM: <claim> #optional
- HOSTNAME: "Home Server" #optional
#devices:
#- /dev/dvb:/dev/dvb # Uncomment this device for typical USB TV Tuner cards
#- /dev/dri:/dev/dri # Uncomment this to use intel GPUs for Hardware Transcoding
networks:
directnet:
ipv4_address: 192.168.101.70 <-- local network address for upnp
volumes:
plex_config:
networks:
directnet:
driver: qnet
driver_opts:
iface: "eth0" <-- Update this with active network port
ipam:
driver: qnet
options:
iface: "eth0" <-- Update this with active network port
config:
- subnet: 192.168.101.0/24
Let the application scan the media and download the library details from the internet.