Plex
Runs Plex Media Server with persistent configuration storage and folders for TV and movie libraries. This template is used to organize and stream personal media collections to web, mobile, or TV apps.
yaml
docker-compose.yml
services:
plex:
image: linuxserver/plex:1.43.1
container_name: plex
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- VERSION=docker
- PLEX_CLAIM=
volumes:
- ./config:/config
- ./tvseries:/tv
- ./movies:/movies
ports:
- "32400:32400"
- 1900:1900/udp
- 5353:5353/udp
- "8324:8324"
- 32410:32410/udp
- 32412:32412/udp
- 32413:32413/udp
- 32414:32414/udp
- "32469:32469"
restart: unless-stopped
.ENV
.env example
PUID=1000
PGID=1000
TZ=UTC
deployment
Quick Start
- Create a working directory named after the service.
- Copy the compose file and generated `.env` into that directory.
- Review the variables and replace placeholders with real values.
- Run `docker compose up -d`.
mkdir plex
cd plex
# create docker-compose.yml
# create .env
docker compose up -d