Skip to content

Instantly share code, notes, and snippets.

@darrenhaken
Created February 3, 2025 20:36
Show Gist options
  • Save darrenhaken/0f4a59003133a2e71a09eb388b1bfc4b to your computer and use it in GitHub Desktop.
Save darrenhaken/0f4a59003133a2e71a09eb388b1bfc4b to your computer and use it in GitHub Desktop.
services:
plex:
image: ghcr.io/linuxserver/plex:latest
container_name: plex
hostname: plex
network_mode: host
restart: unless-stopped
# ports:
# - "32400:32400/tcp"
# - "1900:1900/udp"
# - "8324:8324/tcp"
# - "32410:32410/tcp"
# - "32411:32411/tcp"
# - "32412:32412/tcp"
# - "32413:32413/tcp"
# - "32414:32414/tcp"
environment:
PGID: ${PGID}
PUID: ${PUID}
TZ: ${TZ}
VERSION: public
security_opt:
- no-new-privileges:true
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:32400/web
volumes:
- /etc/localtime:/etc/localtime:ro # Sync the container's time to the host's time
- ${APPDATA}/plex/config:/config
- ${APPDATA}/plex/transcode:/transcode
- ${DATA_PATH}/media:/data/media
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/dri/card0:/dev/dri/card0
# - /dev/dri:/dev/dri # Uncomment this to use Intel GPUs for Hardware Transcoding
# - /dev/bus/usb:/dev/bus/usb
# - /dev/dri/renderD128:/dev/dri/renderD128
# - /dev/dri/card0:/dev/dri/card0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment