---
version: "{{ omni_compose_version | string }}"
networks:
plex:
name: plex
driver: overlay
ipam:
driver: default
config:
- subnet: {{ omni_compose_apps.plex.networks.main }}
volumes:
plex-config:
name: datastore{{ omni_compose_apps.plex.datastore }}
driver: glusterfs
plex-data:
name: plex-data
driver: local
driver_opts:
type: nfs
o: "addr=plexistore.tre2.local,ro"
device: ":/nfs/plex"
plex-personal:
name: datastore/media
services:
server:
image: plexinc/pms-docker:{{ omni_compose_apps.plex.versions.default }}
hostname: plex-media-server
- plex
ports:
- published: {{ omni_compose_apps.plex.published.ports.32400 }}
target: 32400
protocol: tcp
mode: ingress
- published: {{ omni_compose_apps.plex.published.ports.3005 }}
target: 3005
- published: {{ omni_compose_apps.plex.published.ports.8324 }}
target: 8324
- published: {{ omni_compose_apps.plex.published.ports.32469 }}
target: 32469
- published: {{ omni_compose_apps.plex.published.ports.1900 }}
target: 1900
protocol: udp
- published: {{ omni_compose_apps.plex.published.ports.32410 }}
target: 32410
- published: {{ omni_compose_apps.plex.published.ports.32413 }}
target: 32413
- published: {{ omni_compose_apps.plex.published.ports.32414 }}
target: 32414
- type: volume
source: plex-config
target: /config
read_only: false
source: plex-data
target: /data
read_only: true
source: plex-personal
target: /personal
environment:
TZ: "Americas/New_York"
ALLOWED_NETWORKS: 10.42.100.0/24,10.42.101.0/24
PLEX_UID: "{{ omni_compose_apps.plex.account.uid }}"
PLEX_GID: "{{ omni_compose_apps.plex.account.uid }}"
ADVERTISE_IP: "http://10.42.101.10:32400/"
deploy:
replicas: 1