my-runtipi/plex/docker-compose.yml

81 lines
2.3 KiB
YAML

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}