spritsail / plex-media-server

Worlds smallest Docker image for Plex Media Server, built on spritsail/busybox
86 stars 24 forks source link

spritsail/plex-media-server

Latest Version Image Size Docker Pulls Docker Stars Build Status

The smallest* Plex Media Server docker image, built FROM scratch with musl provided by Plex and supporting libraries and binaries built from source. The container hosts a fully featured Plex Media Server, with almost all of the useless crap removed, resulting in the smallest container possible whilst maintaining full functionality.

*last we checked

Getting Started

Navigate to plex.tv/claim and obtain a token in the form claim-xxxx...

Start the container, as demonstrated below, passing the claim token via the PLEX_CLAIM environment variable. This only has to be present on the first run (when the configuration is generated/if you need to re-claim the server at any time) and can be removed for subsequent runs. The Plex claim token is optional however it will make the server available to your account immediately.

Setting the container hostname on first boot will set the Plex server name.

docker run -dt \
    --name=plex \
    --restart=unless-stopped \
    --hostname=my-plex-server \
    -p 32400:32400 \
    -e PLEX_CLAIM=claim-xxxx... \
    -v /config/plex:/config \
    -v /transcode:/transcode \
    -v /media:/media \
    spritsail/plex-media-server

Finally, navigate to app.plex.tv/desktop or your-ip:32400/web and you're done!

Volumes

Environment

Network

The following ports are all used by Plex for various applications

See also: https://support.plex.tv/articles/201543147-what-network-ports-do-i-need-to-allow-through-my-firewall/

At the very least, you should expose 32400/tcp to your network, and port forward it through your router if you would like Plex access outside your home network.

If you wish, you can map the Plex port to any other port outside your network, just be sure to update the port in Settings > Server > Remote Access (Show Advanced) under Manually specify public port.

Troubleshooting