Advertisement
pmfernandes

MediaServer

May 15th, 2024
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. version: '3.8'
  2. services:
  3. bazarr:
  4. # docker compose -f ./docker_compose.yaml up -d bazarr
  5. image: lscr.io/linuxserver/bazarr:latest
  6. container_name: bazarr
  7. environment:
  8. - PUID=${USER_ID}
  9. - PGID=${GROUP_ID}
  10. - TZ=${TIME_ZONE}
  11. volumes:
  12. - ${CONFIG_FOLDER}/bazarr:/config
  13. - ${MOVIES_FOLDER}:/movies #optional
  14. - ${SERIES_FOLDER}:/tv #optional
  15. ports:
  16. - 6767:6767
  17. restart: unless-stopped
  18. jellyfin:
  19. # docker compose -f ./docker_compose.yaml up -d jellyfin
  20. image: lscr.io/linuxserver/jellyfin:latest
  21. container_name: jellyfin
  22. environment:
  23. - PUID=${USER_ID}
  24. - PGID=${GROUP_ID}
  25. - TZ=${TIME_ZONE}
  26. - JELLYFIN_PublishedServerUrl=${SERVER_IP_ADDRESS}
  27. volumes:
  28. - ${CONFIG_FOLDER}/jellyfin:/config
  29. - ${DATA_FOLDER}/jellyfin/data/metadata:/config/data/metadata
  30. - ${TEMP_FOLDER}/jellyfin/cache:/config/cache
  31. - ${TEMP_FOLDER}/jellyfin/transcodes:/config/data/transcodes
  32. - ${SERIES_FOLDER}:/data/tvshows
  33. - ${MOVIES_FOLDER}:/data/movies
  34. - ${MOVIES_KIDS_FOLDER}:/data/movies_kids
  35. ports:
  36. - 8096:8096
  37. - 8920:8920
  38. - 7359:7359/udp
  39. - 1901:1900/udp
  40. restart: unless-stopped
  41. plex:
  42. # docker compose -f ./docker_compose.yaml up -d plex
  43. image: plexinc/pms-docker
  44. container_name: plex
  45. restart: unless-stopped
  46. ports:
  47. - 32400:32400/tcp
  48. - 3005:3005/tcp
  49. - 8324:8324/tcp
  50. - 32469:32469/tcp
  51. - 1900:1900/udp
  52. - 32410:32410/udp
  53. - 32412:32412/udp
  54. - 32413:32413/udp
  55. - 32414:32414/udp
  56. environment:
  57. - TZ=${TIME_ZONE}
  58. - PLEX_CLAIM=${PLEX_CLAIM}
  59. - ADVERTISE_IP=${PLEX_ADVERTISE_IP}
  60. - PLEX_UID=${USER_ID}
  61. - PLEX_GID=${GROUP_ID}
  62. hostname: PlexMediaServer
  63. volumes:
  64. - ${CONFIG_FOLDER}/plex:/config
  65. - ${DATA_FOLDER}/plex/metadata:/config/Library/Application Support/Plex Media Server/Metadata
  66. - ${TEMP_FOLDER}/plex/cache:/config/Library/Application Support/Plex Media Server/Cache
  67. - ${TEMP_FOLDER}/plex/transcode:/transcode
  68. - ${MEDIA_FOLDER}:/data
  69. prowlarr:
  70. # docker compose -f ./docker_compose.yaml up -d prowlarr
  71. image: lscr.io/linuxserver/prowlarr:latest
  72. container_name: prowlarr
  73. restart: unless-stopped
  74. volumes:
  75. - ${CONFIG_FOLDER}/prowlarr:/config
  76. ports:
  77. - 9696:9696
  78. environment:
  79. - TZ=${TIME_ZONE}
  80. radarr:
  81. # docker compose -f ./docker_compose.yaml up -d radarr
  82. image: lscr.io/linuxserver/radarr:latest
  83. container_name: radarr
  84. environment:
  85. - PUID=${USER_ID}
  86. - PGID=${GROUP_ID}
  87. - TZ=${TIME_ZONE}
  88. volumes:
  89. - ${CONFIG_FOLDER}/radarr:/config
  90. - ${MOVIES_FOLDER}:/movies
  91. - ${DOWNLOADS_FOLDER}/transmission:/downloads
  92. ports:
  93. - 7878:7878
  94. restart: unless-stopped
  95. socket-proxy:
  96. container_name: socket-proxy
  97. image: tecnativa/docker-socket-proxy
  98. restart: always
  99. # networks:
  100. # - socket_proxy
  101. # privileged: true # true for VM. False for unprivileged LXC container.
  102. ports:
  103. # - "127.0.0.1:2375:2375" # Port 2375 should only ever get exposed to the internal network. When possible use this line.
  104. # I use the next line instead, as I want portainer to manage multiple docker endpoints within my home network.
  105. - "2375:2375"
  106. volumes:
  107. - "/var/run/docker.sock:/var/run/docker.sock:ro"
  108. environment:
  109. - LOG_LEVEL=info # debug,info,notice,warning,err,crit,alert,emerg
  110. ## Variables match the URL prefix (i.e. AUTH blocks access to /auth/* parts of the API, etc.).
  111. # 0 to revoke access.
  112. # 1 to grant access.
  113. ## Granted by Default
  114. - EVENTS=1
  115. - PING=1
  116. - VERSION=1
  117. ## Revoked by Default
  118. # Security critical
  119. - AUTH=0
  120. - SECRETS=0
  121. - POST=1 # Watchtower
  122. # Not always needed
  123. - BUILD=0
  124. - COMMIT=0
  125. - CONFIGS=0
  126. - CONTAINERS=1 # Traefik, portainer, etc.
  127. - DISTRIBUTION=0
  128. - EXEC=0
  129. - IMAGES=1 # Portainer
  130. - INFO=1 # Portainer
  131. - NETWORKS=1 # Portainer
  132. - NODES=0
  133. - PLUGINS=0
  134. - SERVICES=1 # Portainer
  135. - SESSION=0
  136. - SWARM=0
  137. - SYSTEM=0
  138. - TASKS=1 # Portainer
  139. - VOLUMES=1 # Portainer
  140. sonarr:
  141. # docker compose -f ./docker_compose.yaml up -d sonarr
  142. image: lscr.io/linuxserver/sonarr:latest
  143. container_name: sonarr
  144. environment:
  145. - PUID=${USER_ID}
  146. - PGID=${GROUP_ID}
  147. - TZ=${TIME_ZONE}
  148. volumes:
  149. - ${CONFIG_FOLDER}/sonarr:/config
  150. - ${SERIES_FOLDER}:/tv
  151. - ${DOWNLOADS_FOLDER}/transmission:/downloads
  152. ports:
  153. - 8989:8989
  154. restart: unless-stopped
  155. tautulli:
  156. # docker compose -f ./docker_compose.yaml up -d tautulli
  157. # https://github.com/1activegeek/nginx-config-collection/blob/master/apps/tautulli/tautulli.md
  158. image: ghcr.io/tautulli/tautulli
  159. container_name: tautulli
  160. restart: unless-stopped
  161. volumes:
  162. - ${CONFIG_FOLDER}/tautulli:/config
  163. environment:
  164. - PUID=1000
  165. - PGID=1000
  166. - TZ=${TIME_ZONE}
  167. ports:
  168. - 8181:8181
  169. transmission:
  170. # docker compose -f ./docker_compose.yaml up -d transmission
  171. # image: lscr.io/linuxserver/transmission:latest
  172. image: lscr.io/linuxserver/transmission:version-3.00-r8
  173. container_name: transmission
  174. environment:
  175. - PUID=${USER_ID}
  176. - PGID=${GROUP_ID}
  177. - TZ=${TIME_ZONE}
  178. - TRANSMISSION_WEB_HOME=/transmissionic/
  179. volumes:
  180. - ${CONFIG_FOLDER}/transmission/data:/config
  181. - ${DOWNLOADS_FOLDER}/transmission/watch:/watch
  182. - ${DOWNLOADS_FOLDER}/transmission:/downloads
  183. ports:
  184. - 9091:9091
  185. - 51413:51413
  186. - 51413:51413/udp
  187. restart: unless-stopped
  188. watchtower:
  189. # docker compose -f ./docker_compose.yaml up -d watchtower
  190. container_name: watchtower
  191. image: containrrr/watchtower
  192. volumes:
  193. - /var/run/docker.sock:/var/run/docker.sock
  194. command: --debug --cleanup --schedule "0 0 21 * * *"
  195. restart: unless-stopped
  196. environment:
  197. TZ: ${TIME_ZONE}
  198. WATCHTOWER_NO_STARTUP_MESSAGE: true
  199. WATCHTOWER_NOTIFICATIONS_HOSTNAME: "MediaServer"
  200. WATCHTOWER_NOTIFICATION_REPORT: "true"
  201. WATCHTOWER_NOTIFICATION_URL: ${TELEGRAM_URL}
  202. WATCHTOWER_NOTIFICATION_TEMPLATE: |
  203. {{- if .Report -}}
  204. {{- with .Report -}}
  205. {{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
  206. {{- range .Updated}}
  207. - {{.Name}}: {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}
  208. {{- end -}}
  209. {{- range .Fresh}}
  210. - {{.Name}}: {{.State}}
  211. {{- end -}}
  212. {{- range .Skipped}}
  213. - {{.Name}}: {{.State}}: {{.Error}}
  214. {{- end -}}
  215. {{- range .Failed}}
  216. - {{.Name}}: {{.State}}: {{.Error}}
  217. {{- end -}}
  218. {{- end -}}
  219. {{- else -}}
  220. {{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}}
  221. {{- end -}}
  222.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement