-
Notifications
You must be signed in to change notification settings - Fork 1
/
plex.yml
71 lines (68 loc) · 2.09 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
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
version: '3.7'
services:
plexfront:
image: linuxserver/plex
# command: -H tcp://tasks.agent:9001 --tlsskipverify
environment:
TZ: America/New_York
PLEX_CLAIM: claim-xxx
PLEX_UID: 1000
PLEX_GID: 1000
ADVERTISE_IP: http://192.168.1.51:32400, https://plex.domain.tld
HOME: /config
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
# CHANGE_CONFIG_DIR_OWNERSHIP: 1
ports:
- "32400:32400/tcp"
- "1900:1900/udp"
- "3005:3005/tcp"
- "32410:32410/udp"
- "32412:32412/udp"
- "32413:32413/udp"
- "32414:32414/udp"
- "32469:32469/tcp"
- "33400:33400/tcp"
- "33443:33443/tcp"
- "8324:8324/tcp"
volumes:
- ${USERDIR}/docker/config:/config
- /dev/shm:/transcode
- /data:/data:ro
networks:
- traefik
deploy:
mode: replicated
replicas: 1
labels:
traefik.enable: "true"
traefik.frontend.headers.customResponseHeaders: X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
traefik.frontend.redirect.entryPoint: https
traefik.frontend.entryPoint: http
traefik.frontend.rule: Host:plex.domain.tld
traefik.port: 32400
traefik.protocol: http
traefik.frontend.priority: 1
traefik.backend: plex
traefik.docker.network: traefik
traefik.frontend.headers.SSLRedirect: "true"
traefik.frontend.headers.STSSeconds: 315360000
traefik.frontend.headers.browserXSSFilter: "true"
# traefik.frontend.headers.contentTypeNosniff: "true"
traefik.frontend.headers.forceSTSHeader: "true"
traefik.frontend.headers.SSLHost: domain.tld
# traefik.frontend.headers.STSIncludeSubdomains: "true"
# traefik.frontend.headers.frameDeny: "true"
# placement:
# constraints: [node.platform.os == linux]
# constraints: [node.labels.plex = plex01]
# update_config:
# delay: 30s
restart_policy:
condition: on-failure
networks:
traefik:
driver: overlay
attachable: true
external: true
name: traefik