-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
49 lines (48 loc) · 1.28 KB
/
docker-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
version: "3"
services:
plex:
image: plexinc/pms-docker:latest
container_name: plex
environment:
- TZ=Europe/Paris
- PLEX_CLAIM=claim-xxxxxxxxxxxxxx
- ADVERTISE_IP=https://plex.example.com:443
- PLEX_UID=${USER}
- PLEX_GID=${USER}
- VERSION=docker
volumes:
- ./config:/config
- ./transcode:/transcode
- ./data:/data
hostname: plex.example.com
ports:
- 32400:32400/tcp
- 32400:32400/udp
- 3005:3005/tcp
- 8324:8324/tcp
- 32469:32469/tcp
- 1900:1900/udp
- 32410:32410/udp
- 32412:32412/udp
- 32413:32413/udp
- 32414:32414/udp
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.plex.rule=Host(`plex.example.com`)"
- "traefik.http.routers.plex.entrypoints=websecure"
- "traefik.http.routers.plex.tls.certresolver=mydnschallenge"
- "traefik.http.services.plex.loadbalancer.server.port=32400"
traefik:
restart: always
image: traefik:v2.4
read_only: true
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./Traefik/traefik.yaml:/traefik.yaml:ro
- ./Traefik/etc/traefik:/etc/traefik/
- ./Traefik/log:/var/log/traefik/