media.yaml
· 2.9 KiB · YAML
Originalformat
# Arr media stack w/ Docker Compose
#
# This stack is only tested with an NVIDIA graphics card (see jellyfin service),
# make sure you have installed the correct drivers beforehand.
#
# ENVIRONMENT VARIABLES
# ${MEDIA} :: this is where large files are stored e.g. your nas' mountpoint
# ${CONFIG} :: this is where persistent application configs and data are stored
#
# Don't use root! https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
# ${PUID} :: id -u
# ${PGID} :: id -g
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin
container_name: jellyfin
environment:
- PUID=${PUID}
- PGID=${PGID}
# Replace <uuid> with your GPU's UUID from :: $ nvidia-smi --query-gpu=uuid --format=csv,noheader
- NVIDIA_VISIBLE_DEVICES=<uuid>
volumes:
- /etc/localtime:/etc/localtime:ro
- ${MEDIA}:/data
- ${CONFIG}/jellyfin:/config
ports:
- 8096:8096
restart: unless-stopped
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
qbittorrent:
# Slow speeds with v2, so we use v1
image: lscr.io/linuxserver/qbittorrent:libtorrentv1
container_name: qbittorrent
environment:
- PUID=${PUID}
- PGID=${PGID}
- WEBUI_PORT=8081
volumes:
- /etc/localtime:/etc/localtime:ro
- ${MEDIA}:/data
- ${CONFIG}/qbittorrent:/config
restart: unless-stopped
ports:
- 8081:8081
- 53966:53966 # Forward this port on your router
sonarr:
image: lscr.io/linuxserver/sonarr
container_name: sonarr
environment:
- PUID=${PUID}
- PGID=${PGID}
volumes:
- /etc/localtime:/etc/localtime:ro
- ${MEDIA}:/data
- ${CONFIG}/sonarr:/config
ports:
- 8989:8989
restart: unless-stopped
radarr:
image: lscr.io/linuxserver/radarr
container_name: radarr
environment:
- PUID=${PUID}
- PGID=${PGID}
volumes:
- /etc/localtime:/etc/localtime:ro
- ${MEDIA}:/data
- ${CONFIG}/radarr:/config
ports:
- 7878:7878
restart: unless-stopped
prowlarr:
image: lscr.io/linuxserver/prowlarr
container_name: prowlarr
environment:
- PUID=${PUID}
- PGID=${PGID}
volumes:
- /etc/localtime:/etc/localtime:ro
- ${CONFIG}/prowlarr:/config
ports:
- 9696:9696
restart: unless-stopped
jellyseerr:
image: fallenbagel/jellyseerr:latest
container_name: jellyseerr
environment:
- PUID=${PUID}
- PGID=${PGID}
volumes:
- /etc/localtime:/etc/localtime:ro
- ${CONFIG}/jellyseerr:/app/config
ports:
- 5055:5055
restart: unless-stopped
watchtower:
image: containrrr/watchtower
container_name: watchtower
environment:
- WATCHTOWER_CLEANUP=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
| 1 | # Arr media stack w/ Docker Compose |
| 2 | # |
| 3 | # This stack is only tested with an NVIDIA graphics card (see jellyfin service), |
| 4 | # make sure you have installed the correct drivers beforehand. |
| 5 | # |
| 6 | # ENVIRONMENT VARIABLES |
| 7 | # ${MEDIA} :: this is where large files are stored e.g. your nas' mountpoint |
| 8 | # ${CONFIG} :: this is where persistent application configs and data are stored |
| 9 | # |
| 10 | # Don't use root! https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user |
| 11 | # ${PUID} :: id -u |
| 12 | # ${PGID} :: id -g |
| 13 | |
| 14 | services: |
| 15 | jellyfin: |
| 16 | image: lscr.io/linuxserver/jellyfin |
| 17 | container_name: jellyfin |
| 18 | environment: |
| 19 | - PUID=${PUID} |
| 20 | - PGID=${PGID} |
| 21 | # Replace <uuid> with your GPU's UUID from :: $ nvidia-smi --query-gpu=uuid --format=csv,noheader |
| 22 | - NVIDIA_VISIBLE_DEVICES=<uuid> |
| 23 | volumes: |
| 24 | - /etc/localtime:/etc/localtime:ro |
| 25 | - ${MEDIA}:/data |
| 26 | - ${CONFIG}/jellyfin:/config |
| 27 | ports: |
| 28 | - 8096:8096 |
| 29 | restart: unless-stopped |
| 30 | deploy: |
| 31 | resources: |
| 32 | reservations: |
| 33 | devices: |
| 34 | - driver: nvidia |
| 35 | count: all |
| 36 | capabilities: [gpu] |
| 37 | |
| 38 | qbittorrent: |
| 39 | # Slow speeds with v2, so we use v1 |
| 40 | image: lscr.io/linuxserver/qbittorrent:libtorrentv1 |
| 41 | container_name: qbittorrent |
| 42 | environment: |
| 43 | - PUID=${PUID} |
| 44 | - PGID=${PGID} |
| 45 | - WEBUI_PORT=8081 |
| 46 | volumes: |
| 47 | - /etc/localtime:/etc/localtime:ro |
| 48 | - ${MEDIA}:/data |
| 49 | - ${CONFIG}/qbittorrent:/config |
| 50 | restart: unless-stopped |
| 51 | ports: |
| 52 | - 8081:8081 |
| 53 | - 53966:53966 # Forward this port on your router |
| 54 | |
| 55 | sonarr: |
| 56 | image: lscr.io/linuxserver/sonarr |
| 57 | container_name: sonarr |
| 58 | environment: |
| 59 | - PUID=${PUID} |
| 60 | - PGID=${PGID} |
| 61 | volumes: |
| 62 | - /etc/localtime:/etc/localtime:ro |
| 63 | - ${MEDIA}:/data |
| 64 | - ${CONFIG}/sonarr:/config |
| 65 | ports: |
| 66 | - 8989:8989 |
| 67 | restart: unless-stopped |
| 68 | |
| 69 | radarr: |
| 70 | image: lscr.io/linuxserver/radarr |
| 71 | container_name: radarr |
| 72 | environment: |
| 73 | - PUID=${PUID} |
| 74 | - PGID=${PGID} |
| 75 | volumes: |
| 76 | - /etc/localtime:/etc/localtime:ro |
| 77 | - ${MEDIA}:/data |
| 78 | - ${CONFIG}/radarr:/config |
| 79 | ports: |
| 80 | - 7878:7878 |
| 81 | restart: unless-stopped |
| 82 | |
| 83 | prowlarr: |
| 84 | image: lscr.io/linuxserver/prowlarr |
| 85 | container_name: prowlarr |
| 86 | environment: |
| 87 | - PUID=${PUID} |
| 88 | - PGID=${PGID} |
| 89 | volumes: |
| 90 | - /etc/localtime:/etc/localtime:ro |
| 91 | - ${CONFIG}/prowlarr:/config |
| 92 | ports: |
| 93 | - 9696:9696 |
| 94 | restart: unless-stopped |
| 95 | |
| 96 | jellyseerr: |
| 97 | image: fallenbagel/jellyseerr:latest |
| 98 | container_name: jellyseerr |
| 99 | environment: |
| 100 | - PUID=${PUID} |
| 101 | - PGID=${PGID} |
| 102 | volumes: |
| 103 | - /etc/localtime:/etc/localtime:ro |
| 104 | - ${CONFIG}/jellyseerr:/app/config |
| 105 | ports: |
| 106 | - 5055:5055 |
| 107 | restart: unless-stopped |
| 108 | |
| 109 | watchtower: |
| 110 | image: containrrr/watchtower |
| 111 | container_name: watchtower |
| 112 | environment: |
| 113 | - WATCHTOWER_CLEANUP=true |
| 114 | volumes: |
| 115 | - /var/run/docker.sock:/var/run/docker.sock |
| 116 | restart: unless-stopped |