First iteration of jellyfin and plex

This commit is contained in:
Roger Gonzalez 2023-01-23 11:40:34 -03:00
parent b3d7af6518
commit b7c6c69303
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
2 changed files with 41 additions and 11 deletions

View File

@ -1,24 +1,25 @@
version: "3" version: "3"
services: services:
# Emby is used to serve your media to the client devices # <media_service> is used to serve your media to the client devices
emby: <media_service>:
image: ghcr.io/linuxserver/emby image: lscr.io/linuxserver/<media_service>
container_name: emby container_name: <media_service>
environment: environment:
- PUID=<your_PUID> - PUID=<your_PUID>
- PGID=<your_PGID> - PGID=<your_PGID>
- VERSION=docker
volumes: volumes:
- <media_folder>/movies:/data/movies - <media_folder>/movies:/data/movies
- <media_folder>/tvshows:/data/tvshows - <media_folder>/tvshows:/data/tvshows
- <install_location>/config/emby:/config - <install_location>/config/<media_service>:/config
ports: ports:
- 8096:8096 - <media_service_port>:<media_service_port>
restart: unless-stopped restart: unless-stopped
# qBitorrent is used to download torrents # qBitorrent is used to download torrents
qbittorrent: qbittorrent:
image: ghcr.io/linuxserver/qbittorrent image: lscr.io/linuxserver/qbittorrent
container_name: qbittorrent container_name: qbittorrent
environment: environment:
- PUID=<your_PUID> - PUID=<your_PUID>
@ -34,7 +35,7 @@ services:
# Sonarr is used to query, add downloads to the download queue and index TV shows # Sonarr is used to query, add downloads to the download queue and index TV shows
sonarr: sonarr:
image: ghcr.io/linuxserver/sonarr image: lscr.io/linuxserver/sonarr
container_name: sonarr container_name: sonarr
environment: environment:
- PUID=<your_PUID> - PUID=<your_PUID>
@ -49,7 +50,7 @@ services:
# Radarr is used to query, add downloads to the download queue and index Movies # Radarr is used to query, add downloads to the download queue and index Movies
radarr: radarr:
image: ghcr.io/linuxserver/radarr image: lscr.io/linuxserver/radarr
container_name: radarr container_name: radarr
environment: environment:
- PUID=<your_PUID> - PUID=<your_PUID>
@ -64,7 +65,7 @@ services:
# Bazarr is used to download and categorize subtitles # Bazarr is used to download and categorize subtitles
bazarr: bazarr:
image: ghcr.io/linuxserver/bazarr image: lscr.io/linuxserver/bazarr
container_name: bazarr container_name: bazarr
environment: environment:
- PUID=<your_PUID> - PUID=<your_PUID>

View File

@ -57,7 +57,7 @@ running_services_location() {
echo "Sonarr: http://$host_ip:8989/" echo "Sonarr: http://$host_ip:8989/"
echo "Prowlarr: http://$host_ip:9696/" echo "Prowlarr: http://$host_ip:9696/"
echo "Bazarr: http://$host_ip:6767/" echo "Bazarr: http://$host_ip:6767/"
echo "Emby: http://$host_ip:8096/" echo "$media_service: http://$host_ip:$media_service_port/"
} }
# ============================================================================================ # ============================================================================================
@ -110,6 +110,31 @@ if [ $media_folder_correct == "n" ]; then
send_error_message "Media folder is not correct. Please, fix it and run the script again" send_error_message "Media folder is not correct. Please, fix it and run the script again"
fi fi
# Setting the preferred media service
echo
echo
echo
echo "Time to choose your media service."
echo "Your media service is the one responsible for serving your files to your network."
echo "By default, YAMS support 3 media services:"
echo "- emby (Recommended)"
echo "- jellyfin"
echo "- plex"
read -p "Choose your media service [emby]: " media_service
media_service=${media_service:-"emby"}
media_service=$(echo "$media_service" | sed -e 's/\(.*\)/\L\1/')
media_service_port=8096
if [ "$media_service" == "plex" ]; then
media_service_port=32400
fi
if echo "emby plex jellyfin" | grep -qw "$media_service"; then
echo "YAMS is going to install \"$media_service\" on port \"$media_service_port\""
else
send_error_message "\"$media_service\" is not supported by YAMS. Are you sure you chose the correct service?"
fi
# Adding the VPN # Adding the VPN
echo echo
echo echo
@ -180,6 +205,10 @@ sed -i -e "s/<your_PGID>/$pgid/g" $filename
# Set media_folder # Set media_folder
sed -i -e "s;<media_folder>;$media_folder;g" $filename sed -i -e "s;<media_folder>;$media_folder;g" $filename
# Set media_service
sed -i -e "s;<media_service>;$media_service;g" $filename
sed -i -e "s;<media_service_port>;$media_service_port;g" $filename
# Set config folder # Set config folder
sed -i -e "s;<install_location>;$install_location;g" $filename sed -i -e "s;<install_location>;$install_location;g" $filename