simplify new plex instance
This commit is contained in:
parent
e92d7ea37d
commit
21a4b1e2d2
|
@ -4,28 +4,14 @@ services:
|
||||||
plex:
|
plex:
|
||||||
image: lscr.io/linuxserver/plex
|
image: lscr.io/linuxserver/plex
|
||||||
container_name: music_plex
|
container_name: music_plex
|
||||||
hostname: plex
|
|
||||||
network_mode: host
|
|
||||||
mem_limit: 2g
|
|
||||||
cpu_shares: 512
|
|
||||||
security_opt:
|
|
||||||
- no-new-privileges:true
|
|
||||||
healthcheck:
|
|
||||||
test: wget --no-verbose --tries=1 --spider ${HEALTHCHECK_URL}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/config
|
- ./config:/config
|
||||||
- ${HOST_DATA_FOLDER}/media:/data/media:rw
|
- ${HOST_DATA_FOLDER}/media:/data/media:rw
|
||||||
- ${SD_STORAGE}/transcode/plex:/transcode
|
- ${SD_STORAGE}/transcode/plex_music:/transcode
|
||||||
devices:
|
ports:
|
||||||
- /dev/dri/renderD128:/dev/dri/renderD128
|
- 32402:32400
|
||||||
- /dev/dri/card0:/dev/dri/card0
|
|
||||||
# tmpfs: #this is to use the RAM as location for the transcoding buffer. I've disabled it because of possible OutOfMemory errors. If in the future I have more RAM then will be a nice configuration
|
|
||||||
# - /transcode
|
|
||||||
environment:
|
environment:
|
||||||
- PUID=${USER}
|
- PUID=${THE_USER}
|
||||||
- PGID=${GROUP}
|
- PGID=${GROUP}
|
||||||
- VERSION=public
|
- VERSION=public
|
||||||
- TZ=Europe/Madrid
|
- TZ=Europe/Madrid
|
||||||
restart: on-failure:5
|
|
||||||
#labels:
|
|
||||||
# - "com.centurylinklabs.watchtower.enable=false" #this is to not let the "dockers-version-auto-upgrader" restart plex at any time (specially when users are streaming)
|
|
Loading…
Reference in New Issue