New addition: Plex

This commit is contained in:
2023-09-24 00:21:01 +02:00
parent f2641cb6db
commit 09c6cf9710
2 changed files with 54 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# Uncomment and change the following variables if you want to use them.
#RESTART=unless-stopped
#SYNOLOGY_VOLUME=volume1
#SYNOLOGY_VOLUME_MUSIC=volume1
#SYNOLOGY_VOLUME_PHOTO=volume1
#SYNOLOGY_VOLUME_VIDEO=volume1
#STACK_NAME=plex
#UID=1024
#GID=101
#TZ=Europe/Amsterdam
#PLEX_CONTAINER_NAME=Plex
#PLEX_TAG=latest
#PLEX_PORT_HTTP=32400
#PLEX_PORT_ROKU=8324
#PLEX_PORT_DLNA_1=1900
#PLEX_PORT_DLNA_2=32469
#PLEX_PORT_DISCOVERY_1=32410
#PLEX_PORT_DISCOVERY_2=32412
#PLEX_PORT_DISCOVERY_3=32413
#PLEX_PORT_DISCOVERY_4=32414
#PLEX_ADVERTISE_IP=127.0.0.1
PLEX_CLAIM=
+32
View File
@@ -0,0 +1,32 @@
services:
# Plex
plex:
container_name: ${PLEX_CONTAINER_NAME:-Plex}
hostname: plex
image: plexinc/pms-docker:${PLEX_TAG:-latest}
restart: ${RESTART:-unless-stopped}
environment:
PLEX_UID: ${UID:-1024}
PLEX_GID: ${PID:-101}
TZ: ${TZ:-Europe/Amsterdam}
# Go to plex.tv/claim first for a claim code.
PLEX_CLAIM: ${PLEX_CLAIM}
ADVERTISE_IP: http://${PLEX_ADVERTISE_IP:-127.0.0.1}:${PLEX_PORT_HTTP:-32400}/
ports:
- ${PLEX_PORT_HTTP:-32400}:32400
- ${PLEX_PORT_ROKU:-8324}:8324
- ${PLEX_PORT_DLNA_1:-1900}:1900/udp
- ${PLEX_PORT_DLNA_2:-32469}:32469
- ${PLEX_PORT_DISCOVERY_1:-32410}:32410/udp
- ${PLEX_PORT_DISCOVERY_2:-32412}:32412/udp
- ${PLEX_PORT_DISCOVERY_3:-32413}:32413/udp
- ${PLEX_PORT_DISCOVERY_4:-32414}:32414/udp
devices:
- /dev/dri:/dev/dri
volumes:
- /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-plex}/${PLEX_CONTAINER_NAME:-Plex}/config:/config
- /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-plex}/${PLEX_CONTAINER_NAME:-Plex}/transcode:/transcode
- /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-plex}/${PLEX_CONTAINER_NAME:-Plex}/data:/data
- /${SYNOLOGY_VOLUME_MUSIC:-volume1}/music:/${SYNOLOGY_VOLUME_MUSIC:-volume1}/music:ro
- /${SYNOLOGY_VOLUME_PHOTO:-volume1}/photo:/${SYNOLOGY_VOLUME_PHOTO:-volume1}/photo:ro
- /${SYNOLOGY_VOLUME_VIDEO:-volume1}/video:/${SYNOLOGY_VOLUME_VIDEO:-volume1}/video:ro