-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml.template
69 lines (63 loc) · 1.62 KB
/
docker-compose.yml.template
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
version: '3'
services:
plex:
image: plexinc/pms-docker:latest
networks:
- plex-network
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
environment:
- TZ=<timezone>
- ADVERTISE_IP=http://<hostipaddress>:3001/
- LB_URL=http://loadbalancer:3001/
volumes:
- plex_binaries:/usr/lib/plexmediaserver
- plex_database:/config
- plex_media:/media:ro
restart: unless-stopped
loadbalancer:
image: magn2o/unicorn-loadbalancer:latest
depends_on:
- plex
- redis
networks:
- plex-network
ports:
- 3001:3001/tcp
environment:
- SERVER_HOST=127.0.0.1
- SERVER_PORT=3001
- SERVER_PUBLIC=http://<hostipaddress>:3001/
- PLEX_HOST=plex
- PLEX_PORT=32400
- PLEX_PATH_SESSIONS=/config/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions
- DATABASE_SQLITE_PATH=/config/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db
- REDIS_HOST=redis
- REDIS_PORT=6379
- LB_URL=http://loadbalancer:3001/
volumes:
- plex_binaries:/usr/lib/plexmediaserver
- plex_database:/config
- plex_media:/media:ro
restart: unless-stopped
redis:
image: redis:alpine
networks:
- plex-network
sysctls:
- net.core.somaxconn=511
restart: unless-stopped
volumes:
plex_binaries:
plex_database:
plex_media:
networks:
plex-network: