From d58a46a7e1081eac2c3124bf0d2544f953584ce8 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@kateryna)" Date: Sun, 24 Nov 2024 23:46:59 -0500 Subject: [PATCH] Added Plex --- plex/docker-compose.yml | 81 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 plex/docker-compose.yml diff --git a/plex/docker-compose.yml b/plex/docker-compose.yml new file mode 100644 index 0000000..3e2af33 --- /dev/null +++ b/plex/docker-compose.yml @@ -0,0 +1,81 @@ +services: + plex: + network_mode: "" #container:plexnet + networks: + lan: + ipv4_address: 192.168.222.46 + environment: + PUID: "${SZ_USER_UID}" + PGID: "${SZ_USER_GID}" + volumes: + # dummy.config is used to preserve /config permissions only, this prevents the recursive chown from running on startup + - /srv/plex/dummy.config:/config + # Actual plex/config dataset + - /srv/plex/config:/config/Library/Application Support/Plex Media Server + # Actual plex/transcode dataset + - /srv/plex/transcode:/transcode + + # NFS mounts + - media1video:/media/1/video + - media0:/media/0 + - media0personal:/media/0.personal + + #- ${APP_DATA_DIR}/data/config:/config + + # Throwaway volumes: + - cache_root:/config/Library/Application Support/Plex Media Server/Cache + # - crash_reports:/config/Library/Application Support/Plex Media Server/Crash Reports + # - cache_Metadata:/config/Library/Application Support/Plex Media Server/Metadata/Cache + # - cache_Metadata_PlugInSupport:/config/Library/Application Support/Plex Media Server/Metadata/Plug-in Support/Cache + # - /srv/plex/transcode:/config/Library/Application Support/Plex Media Server/Transcode + +volumes: + media1: + external: true +# driver_opts: +# type: nfs +# o: addr=kateryna.lan,nolock,soft,rw +# device: :/mnt/szusb1/z/media + media1video: + external: true +# driver_opts: +# type: nfs +# o: addr=kateryna.lan,nolock,soft,rw +# device: :/mnt/szusb1/z/media/video + media0personal: + external: true +# driver_opts: +# type: nfs +# o: addr=kateryna.lan,nolock,soft,rw +# device: :/mnt/szmedia/media.personal + media0: + external: true +# driver_opts: +# type: nfs +# o: addr=kateryna.lan,nolock,soft,rw +# device: :/mnt/szmedia/media + cache_root: + external: true + name: plex_cache_root + crash_reports: + external: true + name: plex_crash_reports + cache_Metadata: + external: true + name: plex_cache_Metadata + cache_Metadata_PlugInSupport: + external: true + name: plex_cache_Metadata_PlugInSupport + +networks: + lan: + external: true +# driver: ipvlan +# ipam: +# config: +# - subnet: ${MY_SUBNET} +# gateway: ${MY_IPv4_GW} +# # - subnet: 192.168.1.0/24 +# driver_opts: +# com.docker.network.enable_ipv6: "false" +# parent: ${MY_NET_IF} \ No newline at end of file