josiah
35f7d0beb7
I wanted to have plex handled as part of swarm, but: a) it doesn't fucking matter becuase I don't intend to have fault tolerance for plex; i'm not even sure it can run well in a clustered way b) its just much much easier to get compose working rather than swarm. One day maybe i'd like to do that so that its a single stack to deliver, but meh.
25 lines
715 B
Django/Jinja
25 lines
715 B
Django/Jinja
version: '3.7'
|
|
services:
|
|
plex:
|
|
image: plexinc/pms-docker:latest
|
|
environment:
|
|
- "TZ=America/Chicago"
|
|
- "PLEX_CLAIM={{ vault_pms_claim_token }}"
|
|
- "ADVERTISE_IP=http://pms.services.jowj.net:32400/"
|
|
- "VERSION=docker"
|
|
- "UMASK_SET=022"
|
|
hostname: pms
|
|
volumes:
|
|
- /home/josiah/apps/plex/config:/config
|
|
- /home/josiah/apps/plex/transcode:/transcode
|
|
- /media/usenet:/data
|
|
devices:
|
|
- /dev/dri:/dev/dri
|
|
network_mode: bridge
|
|
ports:
|
|
# Note that traefik isn't used for these ports - we're just exposing them directly
|
|
{% for port in plex_ports %}
|
|
- "{{ port.port }}:{{ port.port }}/{{ port.protocol }}"
|
|
{% endfor %}
|
|
|