1
0
Fork 0
dockers-config/plex/docker-compose.yml

31 lines
789 B
YAML

---
version: "2.1"
services:
plex:
image: lscr.io/linuxserver/plex
container_name: mangrana_plex
hostname: plex
network_mode: host
mem_limit: 4g
cpu_shares: 1024
security_opt:
- no-new-privileges:true
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:32400/web
volumes:
- ./config:/config
- ${DOCKERSTORAGEDIR}/media:/data/media:rw
- ${SDSTORAGEDIR}/transcode/plex:/transcode
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/dri/card0:/dev/dri/card0
# tmpfs:
# - /transcode
environment:
- PUID=1026
- PGID=100
- VERSION=public
- TZ=Europe/Madrid
restart: on-failure:5
labels:
- "com.centurylinklabs.watchtower.enable=false"