From 3f89ebded0ebd13958d90d3fe9216c9a82c1a69f Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Wed, 14 Sep 2016 00:06:03 +0100 Subject: [PATCH 1/3] Path fixes for media-compose.yml --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 846d8ed..9353123 100644 --- a/start.sh +++ b/start.sh @@ -28,6 +28,6 @@ for ((i=0; i<$slen; i++)); do [[ $( ls -dn $VOLDIR/${SERVICES[$i]} | awk '{print $3}') != ${SERVICEUID[$i]} ]] && echo "Chowning $VOLDIR/${SERVICES[$i]} to user ${SERVICEUID[$i]}" && chown ${SERVICEUID[$i]}:${SERVICEUID[$i]} $VOLDIR/${SERVICES[$i]} done -[[ ! -a $VOLDIR/launcher/docker-compose.yml ]] && echo "Downloading docker-compose.yml.." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/docker-compose.yml > $VOLDIR/launcher/media-compose.yml +[[ ! -a $VOLDIR/launcher/media-compose.yml ]] && echo "Downloading media-compose.yml.." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/docker-compose.yml > $VOLDIR/launcher/media-compose.yml echo "Starting services..." exec docker-compose -p media -f $VOLDIR/launcher/media-compose.yml up -d From 265a93f6056c217865822d06a2b51cbdcc01e2a1 Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Wed, 14 Sep 2016 15:34:42 +0100 Subject: [PATCH 2/3] Recursively chown config directories --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 9353123..59dffb8 100644 --- a/start.sh +++ b/start.sh @@ -25,7 +25,7 @@ docker-compose version &> /dev/null slen=${#SERVICES[@]} for ((i=0; i<$slen; i++)); do [[ ! -d $VOLDIR/${SERVICES[$i]} ]] && echo "Creating folder $VOLDIR/${SERVICES[$i]}" && mkdir -p $VOLDIR/${SERVICES[$i]} - [[ $( ls -dn $VOLDIR/${SERVICES[$i]} | awk '{print $3}') != ${SERVICEUID[$i]} ]] && echo "Chowning $VOLDIR/${SERVICES[$i]} to user ${SERVICEUID[$i]}" && chown ${SERVICEUID[$i]}:${SERVICEUID[$i]} $VOLDIR/${SERVICES[$i]} + [[ $( ls -dn $VOLDIR/${SERVICES[$i]} | awk '{print $3}') != ${SERVICEUID[$i]} ]] && echo "Chowning $VOLDIR/${SERVICES[$i]} to user ${SERVICEUID[$i]}" && chown -R ${SERVICEUID[$i]}:${SERVICEUID[$i]} $VOLDIR/${SERVICES[$i]} done [[ ! -a $VOLDIR/launcher/media-compose.yml ]] && echo "Downloading media-compose.yml.." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/docker-compose.yml > $VOLDIR/launcher/media-compose.yml From eb2f7a927093555f0ba4733388c2a9e6696a577b Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Wed, 8 Feb 2017 23:55:02 +0000 Subject: [PATCH 3/3] Add Radarr support --- docker-compose.yml | 11 +++++++++++ start.sh | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bf688a9..a68d22f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -67,6 +67,17 @@ services: ports: - "8181:8181" + radarr: + image: adamant/radarr + depends_on: + - deluge + - nzbget + volumes_from: + - data + - container:media + restart: always + ports: + - "7878:7878" plex: image: adamant/alpine-plex depends_on: diff --git a/start.sh b/start.sh index 59dffb8..2c4f288 100644 --- a/start.sh +++ b/start.sh @@ -4,8 +4,8 @@ # Prereqs: docker, docker-compose, curl (https) export VOLDIR="/volumes/media-server" -SERVICES=("couchpotato" "deluge" "headphones" "nzbget" "plex" "plexpy" "sickrage" "launcher") -SERVICEUID=("745" "647" "526" "236" "787" "426" "439" "0") +SERVICES=("couchpotato" "deluge" "headphones" "nzbget" "plex" "plexpy" "sickrage" "launcher" "radarr") +SERVICEUID=("745" "647" "526" "236" "787" "426" "439" "0" "326") [[ $EUID -ne 0 ]] && echo "Please run this script as root" && exit 1