diff --git a/.gitignore_public b/.gitignore_public index d7feb86..bcdb926 100644 --- a/.gitignore_public +++ b/.gitignore_public @@ -16,6 +16,7 @@ ownServices/ArrModificationCapturer ownServices/SonarrQueueFixer/config overseerr/config plex/config +plex_music/config prowlarr/config qbit/bk qbit/config @@ -24,8 +25,10 @@ radarr/config sonarr/config tautulli/config +#envs with host sensitive info ownServices/SonarrQueueFixer/.env plex/.env +plex_music/.env plex/old_env radarr/.env sonarr/.env diff --git a/plex_music/docker-compose.yml b/plex_music/docker-compose.yml new file mode 100644 index 0000000..81b7c1e --- /dev/null +++ b/plex_music/docker-compose.yml @@ -0,0 +1,31 @@ +--- +version: "2.1" +services: + plex: + image: lscr.io/linuxserver/plex + container_name: music_plex + hostname: plex + network_mode: host + mem_limit: 2g + cpu_shares: 512 + security_opt: + - no-new-privileges:true + healthcheck: + test: wget --no-verbose --tries=1 --spider ${HEALTHCHECK_URL} + volumes: + - ./config:/config + - ${HOST_DATA_FOLDER}/media:/data/media:rw + - ${SD_STORAGE}/transcode/plex:/transcode + devices: + - /dev/dri/renderD128:/dev/dri/renderD128 + - /dev/dri/card0:/dev/dri/card0 +# tmpfs: #this is to use the RAM as location for the transcoding buffer. I've disabled it because of possible OutOfMemory errors. If in the future I have more RAM then will be a nice configuration +# - /transcode + environment: + - PUID=${USER} + - PGID=${GROUP} + - VERSION=public + - TZ=Europe/Madrid + restart: on-failure:5 + #labels: + # - "com.centurylinklabs.watchtower.enable=false" #this is to not let the "dockers-version-auto-upgrader" restart plex at any time (specially when users are streaming) \ No newline at end of file