summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-09 18:59:33 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-09 18:59:33 -0300
commit94e90c83fd268f5b50fa2b9ad4825021ecff7f48 (patch)
treefaf02feda27efd9c4781d7fa6ea77cfd2e78a9d7
parent41a0ddf172df7e5b2875ffb1ef8fa338f10c2469 (diff)
Added config for dockers
-rw-r--r--docker-compose.example.yaml6
-rwxr-xr-xinstall.sh5
2 files changed, 11 insertions, 0 deletions
diff --git a/docker-compose.example.yaml b/docker-compose.example.yaml
index 79826c1..512ed7c 100644
--- a/docker-compose.example.yaml
+++ b/docker-compose.example.yaml
@@ -11,6 +11,7 @@ services:
volumes:
- <media_folder>/movies:/data/movies
- <media_folder>/tvshows:/data/tvshows
+ - <install_location>/config/emby:/config
ports:
- 8096:8096
restart: unless-stopped
@@ -25,6 +26,7 @@ services:
- WEB_UI_PORT=8080
volumes:
- <media_folder>/downloads:/downloads
+ - <install_location>/config/qbittorrent:/config
ports:
- 6881:6881
- 6881:6881/udp
@@ -41,6 +43,7 @@ services:
volumes:
- <media_folder>/tvshows:/tv
- <media_folder>/downloads:/downloads
+ - <install_location>/config/sonarr:/config
ports:
- 8989:8989
restart: unless-stopped
@@ -55,6 +58,7 @@ services:
volumes:
- <media_folder>/movies:/movies
- <media_folder>/downloads:/downloads
+ - <install_location>/config/radarr:/config
ports:
- 7878:7878
restart: unless-stopped
@@ -69,6 +73,7 @@ services:
volumes:
- <media_folder>/movies:/movies
- <media_folder>/tvshows:/tv
+ - <install_location>/config/bazarr:/config
ports:
- 6767:6767
restart: unless-stopped
@@ -84,6 +89,7 @@ services:
- AUTO_UPDATE="True"
volumes:
- <media_folder>/blackhole:/downloads
+ - <install_location>/config/jackett:/config
ports:
- 9117:9117
restart: unless-stopped
diff --git a/install.sh b/install.sh
index c8b5f57..0d85218 100755
--- a/install.sh
+++ b/install.sh
@@ -134,9 +134,13 @@ sed -i -e "s/<your_PGID>/$pgid/g" $filename
# Set media_folder
sed -i -e "s;<media_folder>;$media_folder;g" $filename
+# Set config folder
+sed -i -e "s;<install_location>;$install_location;g" $filename
+
# Set yams script
sed -i -e "s;<filename>;$filename;g" yams
+
send_success_message "Everything installed correctly! 🎉"
read -p "Do you want to run the script now? [Y/n]: " run_now
run_now=${run_now:-"y"}
@@ -162,6 +166,7 @@ fi
send_success_message "We need your sudo password to install the yams CLI and correct permissions..."
sudo cp yams /usr/local/bin/yams && sudo chmod +x /usr/local/bin/yams
sudo chown -R $puid:$pgid $media_folder
+sudo chown -R $puid:$pgid $install_location/config
printf "\033c"