--- 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" services: server: image: plexinc/pms-docker:{{ omni_compose_apps.plex.versions.default }} hostname: plex-media-server networks: - 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 protocol: tcp mode: ingress - published: {{ omni_compose_apps.plex.published.ports.8324 }} target: 8324 protocol: tcp mode: ingress - published: {{ omni_compose_apps.plex.published.ports.32469 }} target: 32469 protocol: tcp mode: ingress - published: {{ omni_compose_apps.plex.published.ports.1900 }} target: 1900 protocol: udp mode: ingress - published: {{ omni_compose_apps.plex.published.ports.32410 }} target: 32410 protocol: udp mode: ingress - published: {{ omni_compose_apps.plex.published.ports.32413 }} target: 32413 protocol: udp mode: ingress - published: {{ omni_compose_apps.plex.published.ports.32414 }} target: 32414 protocol: udp mode: ingress volumes: - type: volume source: plex-config target: /config read_only: false - type: volume source: plex-data target: /data read_only: true 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