From 31656cfaa0ba867fb0ba114bc52eb4f10b9cb6b9 Mon Sep 17 00:00:00 2001 From: Admin9705 <9705@duck.com> Date: Fri, 13 Sep 2024 03:35:08 -0400 Subject: [PATCH] update --- lidarr2.app | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ lidarr3.app | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 lidarr2.app create mode 100644 lidarr3.app diff --git a/lidarr2.app b/lidarr2.app new file mode 100644 index 0000000..99208ec --- /dev/null +++ b/lidarr2.app @@ -0,0 +1,55 @@ +#!/bin/bash + +# ================================ DEFAULT VALUES ================================== # + +default_variables() { +port_number=8686 +time_zone=America/New_York +appdata_path=/pg/appdata/lidarr +music_path=/pg/media/music +clientdownload_path=/pg/downloads +version_tag=latest +expose= +} + +# ================================ CONTAINER DEPLOYMENT ================================ # +deploy_container() { + +create_docker_compose() { + cat << EOF > /pg/ymals/${app_name}/docker-compose.yml +services: + lidarr: + image: lscr.io/linuxserver/lidarr:latest + container_name: lidarr + environment: + - PUID=1000 # Adjust as needed + - PGID=1000 # Adjust as needed + - TZ=America/New_York # Set your timezone + volumes: + - /pg/appdata/lidarr:/config + - /pg/media/music:/music + - /pg/downloads:/downloads + restart: unless-stopped + labels: + - 'traefik.enable=true' + - 'traefik.http.routers.lidarr.rule=Host("lidarr.the9705.org")' + - 'traefik.http.routers.lidarr.entrypoints=websecure' + - 'traefik.http.routers.lidarr.tls.certresolver=mytlschallenge' + - 'traefik.http.services.lidarr.loadbalancer.server.port=8686' + networks: + - plexguide + +networks: + plexguide: + external: true +EOF +} + +} + +# ================================ MENU GENERATION ================================ # +# NOTE: List menu options in order of appears and place a this for naming #### Item Title + + +# ================================ EXTRA FUNCTIONS ================================ # +# NOTE: Extra Functions for Script Organization \ No newline at end of file diff --git a/lidarr3.app b/lidarr3.app new file mode 100644 index 0000000..9284297 --- /dev/null +++ b/lidarr3.app @@ -0,0 +1,55 @@ +#!/bin/bash + +# ================================ DEFAULT VALUES ================================== # + +default_variables() { +port_number=8688 +time_zone=America/New_York +appdata_path=/pg/appdata/${app_name} +music_path=/pg/media/music +clientdownload_path=/pg/downloads +version_tag=latest +expose= +} + +# ================================ CONTAINER DEPLOYMENT ================================ # +deploy_container() { + +create_docker_compose() { + cat << EOF > /pg/ymals/${app_name}/docker-compose.yml +services: + ${app_name}: + image: lscr.io/linuxserver/${app_name}:latest + container_name: ${app_name} + environment: + - PUID=1000 # Adjust as needed + - PGID=1000 # Adjust as needed + - TZ=America/New_York # Set your timezone + volumes: + - /pg/appdata/${app_name}:/config + - /pg/media/music:/music + - /pg/downloads:/downloads + restart: unless-stopped + labels: + - 'traefik.enable=true' + - 'traefik.http.routers.${app_name}.rule=Host("${app_name}.${traefik_domain}.org")' + - 'traefik.http.routers.${app_name}.entrypoints=websecure' + - 'traefik.http.routers.${app_name}.tls.certresolver=mytlschallenge' + - 'traefik.http.services.${app_name}.loadbalancer.server.port=8686' + networks: + - plexguide + +networks: + plexguide: + external: true +EOF +} + +} + +# ================================ MENU GENERATION ================================ # +# NOTE: List menu options in order of appears and place a this for naming #### Item Title + + +# ================================ EXTRA FUNCTIONS ================================ # +# NOTE: Extra Functions for Script Organization \ No newline at end of file