Skip to content

Instantly share code, notes, and snippets.

@petersem
Last active May 12, 2022 02:03
Show Gist options
  • Save petersem/3c8db6fca08cfff3e8e49612ee6b3795 to your computer and use it in GitHub Desktop.
Save petersem/3c8db6fca08cfff3e8e49612ee6b3795 to your computer and use it in GitHub Desktop.
Docker Plex and Quicksync Yaml
################ .env
PUID=1026
PGID=101
DOCKER_PATH=/volume1/docker
MEDIA_PATH=/volume1/media
HOST_NAME=YourPlexHostName
PLEX_CLAIM_TOKEN=YourPlexToken
ADVERTISE_IP=https://plex.YourDomainName
ALLOWED_NETWORKS=192.168.1.0/24,172.18.0.0/24
TZ=Australia/Brisbane
################ compose.yaml
# Extension fields
x-env: &common_env
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
services:
plex:
container_name: plex
restart: unless-stopped
image: linuxserver/plex
volumes:
- $DOCKER_PATH/plex/config:/config
- $DOCKER_PATH/plex/transcode:/transcode
- $MEDIA_PATH:/media
network_mode: host
environment:
<<: *common_env
- HOSTNAME=$HOST_NAME
- PLEX_CLAIM=$PLEX_CLAIM_TOKEN
- ADVERTISE_IP=$ADVERTISE_IP
- VERSION=docker
- ALLOWED_NETWORKS=$ALLOWED_NETWORKS
labels:
autoheal: 'true'
healthcheck:
test: curl -fsS http://localhost:32400/identity > /dev/null || exit 1
start_period: 20s
timeout: 10s
interval: 5s
retries: 3
# For embedded intel GPU
devices:
- /dev/dri:/dev/dri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment