-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |