This repository has been archived by the owner on Jun 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
plex-compose.yml
executable file
·83 lines (82 loc) · 3.29 KB
/
plex-compose.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3.4'
services:
rclone_plex:
image: makeshift27015/rclone:${tag:-latest}
restart: unless-stopped
network_mode: "host"
security_opt:
- apparmor:unconfined
devices:
- "/dev/fuse:/dev/fuse"
env_file:
- ./rclone.env
environment:
ItemsPerUpload: 16
MountPoint: "/shared/plex"
CacheFolderSuffix: "_plex"
MountCommands: " \
--fast-list \
--allow-other \
--allow-non-empty \
--umask 000 \
--uid ${uid:-65534} \
--gid ${gid:-65534} \
-v \
--checkers 32 \
--buffer-size 256M \
--transfers 16 \
--use-mmap \
--vfs-cache-mode ${rclone_plex_vfs_cache_mode:-full} \
--poll-interval 120s \
--attr-timeout 30m \
--dir-cache-time 24h \
--vfs-cache-poll-interval 20m \
--vfs-cache-max-age 24h \
--vfs-cache-max-size 256G \
--stats 1m \
--stats-one-line \
--stats-log-level NOTICE \
-P \
--cache-dir=/shared/caches/rclone_vfs_plex/ \
--low-level-retries 3 \
--multi-thread-cutoff 25M \
--multi-thread-streams 8 \
--no-update-modtime \
--rc-addr=0.0.0.0:5573 \
--rc-no-auth \
--rc"
cap_add:
- SYS_ADMIN
volumes:
- ./rclone_conf:/rclone_conf:ro
- ./shared_plex:/shared:rshared
- ./service_accounts:/service_accounts:ro
labels:
- com.centurylinklabs.watchtower.enable=${autoupdate_rclone:-false}
deploy:
replicas: ${rclone_enabled:-1}
plex:
image: plexinc/pms-docker:plexpass
network_mode: "host"
restart: unless-stopped
environment:
TZ: Europe/London
DEBUG: ${debug:-false}
env_file:
- ./plex.env
labels:
- proxy.hosts=plex.${domain},plex.local.${domain},plex.public.${domain}
- proxy.port=32400
- proxy.template=/templates/plex.vhost
- com.centurylinklabs.watchtower.enable=${autoupdate_plex:-false}
volumes:
- ./runtime_conf/plex:/config
- ./runtime_conf/plex/Profiles:/usr/lib/plexmediaserver/Resources/Profiles
- ./shared_plex:/shared:rshared
- ./runtime_conf/plex/transcode:/transcode
extra_hosts:
${plex_domain}: 127.0.0.1
depends_on:
- rclone_plex
deploy:
replicas: ${plex_enabled:-1}