Added a docker compose file and some helper scripts

This commit is contained in:
K_lar 2025-05-21 13:35:39 +02:00
commit c2c55a426f
3 changed files with 123 additions and 0 deletions

108
docker-compose.yml Normal file
View file

@ -0,0 +1,108 @@
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
restart: unless-stopped
ports:
- 8096:8096
volumes:
- ./config/jellyfin:/config
- ./media:/media
- ./downloads:/downloads
sonarr:
image: linuxserver/sonarr:latest
container_name: sonarr
restart: unless-stopped
ports:
- 8989:8989
volumes:
- ./config/sonarr:/config
- ./downloads:/downloads
- ./media:/media
- ./scripts:/scripts # if you use custom post-processing
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Ljubljana
networks:
- media
radarr:
image: linuxserver/radarr:latest
container_name: radarr
restart: unless-stopped
ports:
- 7878:7878
volumes:
- ./config/radarr:/config
- ./downloads:/downloads
- ./media:/media
- ./scripts:/scripts
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Ljubljana
lidarr:
image: linuxserver/lidarr:latest
container_name: lidarr
restart: unless-stopped
ports:
- 8686:8686
volumes:
- ./config/lidarr:/config
- ./downloads:/downloads
- ./media:/media
- ./scripts:/scripts
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Ljubljana
prowlarr:
image: linuxserver/prowlarr:latest
container_name: prowlarr
restart: unless-stopped
ports:
- 9696:9696
volumes:
- ./config/prowlarr:/config
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Ljubljana
qbittorrent:
image: linuxserver/qbittorrent:latest
container_name: qbittorrent
restart: unless-stopped
ports:
- 8080:8080 # Web UI
volumes:
- ./config/qbittorrent:/config
- ./downloads:/downloads
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Ljubljana
- WEBUI_PORT=8080
jellyseerr:
image: fallenbagel/jellyseerr:latest
container_name: jellyseerr
restart: unless-stopped
ports:
- 5055:5055
bazarr:
image: ghcr.io/bazarr/bazarr:latest
container_name: bazarr
restart: unless-stopped
ports:
- 6767:6767
volumes:
- ./config/bazarr:/config
- ./media:/media
- ./downloads:/downloads

12
scripts/jellyfin-scan.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/sh
# You need to remake this script with every provider,
# so you need one for sonarr, one for radarr and so on.
# Add it to your custom script in that provider.
# To get your library id, you need to send a GET
# request to http://jellyfin:port/Library/VirtualFolders
# The API key from that indexer is also needed,
# that's found in the settings of that indexer.
curl -X POST "http://jellyfin:8096/Library/Refresh?libraryId=<YOUR_LIBRARY_ID>" \
-H "X-Emby-Token: <YOUR_API_KEY>"

3
setup_dirs.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh
mkdir -p config/{jellyfin,sonarr,radarr,lidarr,prowlarr,qbittorrent,jellyseerr,bazarr} media downloads scripts