-
Notifications
You must be signed in to change notification settings - Fork 1
/
plex.yml
38 lines (38 loc) · 1.02 KB
/
plex.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
services:
# Plex - Media Server
plex:
image: lscr.io/linuxserver/plex:latest
container_name: plex
networks:
- default
security_opt:
- no-new-privileges:true
restart: "no"
# profiles: ["media", "all"]
# devices:
# - /dev/dri:/dev/dri # for hardware transcoding
ports:
- "32400:32400/tcp"
- "3005:3005/tcp"
- "8324:8324/tcp"
- "32469:32469/tcp"
- "1900:1900/udp"
- "32410:32410/udp"
- "32412:32412/udp"
- "32413:32413/udp"
- "32414:32414/udp"
volumes:
- $DOCKERDIR/appdata/plex:/config
- $DATADIR/media:/media # Media Folder
- /dev/shm:/data/transcode # Offload transcoding to RAM if you have enough RAM
environment:
TZ: $TZ
HOSTNAME: "myPlex"
#PLEX_CLAIM_FILE: /run/secrets/plex_claim # Not required initially
PLEX_CLAIM: $PLEX_CLAIM
PLEX_UID: $PUID
PLEX_GID: $PGID
ADVERTISE_IP: "http://$SERVER_IP:32400/"
ALLOWED_NETWORKS: $LOCAL_IPS
secrets:
- plex_claim