-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml.plex-intel-gpu
48 lines (47 loc) · 1.22 KB
/
docker-compose.yaml.plex-intel-gpu
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
version: '3.2'
services:
plex:
image: 'plexinc/pms-docker:plexpass' # or use latest'
init: true
container_name: plex-intel-gpu
network_mode: host
devices:
- /dev/dri:/dev/dri # if using intel GPU
mem_limit: 8096M
mem_reservation: 200M
cpus: 4.0
environment:
TZ: "America/New_York"
PLEX_CLAIM: "claim-xxxxxxxxxxxxxxxx"
ADVERTISE_IP: "http://192.168.1.x:32400/"
ALLOWED_NETWORKS: 192.168.0.0/16,172.16.0.0/16
PLEX_UID: 1000
PLEX_GID: 1000
restart: unless-stopped
hostname: 'plexserv'
volumes:
- type: bind
source: ./plex/database/
target: /config/
- type: bind
source: ./plex/transcode/temp/
target: /transcode/
- type: bind
source: /media/videos/
target: /data/videos/
- type: bind
source: /media/music/
target: /data/music/
- type: bind
source: /media/pictures/
target: /data/pics/
healthcheck:
test: ["CMD-SHELL", "df -h", "|", "grep", "/media/{pics,music,videos}", "||", "exit", "1"]
interval: 3m
timeout: 10s
retries: 3
start_period: 1m
networks:
default:
external: true
name: SHARED