mirror of
https://github.com/Adam-Ant/media-server-in-a-box
synced 2024-12-20 14:44:34 +00:00
Merge branch 'master' into proxy
This commit is contained in:
commit
ec1e7840f4
@ -44,6 +44,17 @@ services:
|
|||||||
- container:media
|
- container:media
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
radarr:
|
||||||
|
image: adamant/radarr
|
||||||
|
depends_on:
|
||||||
|
- deluge
|
||||||
|
- nzbget
|
||||||
|
volumes_from:
|
||||||
|
- data
|
||||||
|
- container:media
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "7878:7878"
|
||||||
plex:
|
plex:
|
||||||
image: adamant/alpine-plex
|
image: adamant/alpine-plex
|
||||||
depends_on:
|
depends_on:
|
||||||
|
11
start.sh
11
start.sh
@ -4,8 +4,13 @@
|
|||||||
# Prereqs: docker, docker-compose, curl (https)
|
# Prereqs: docker, docker-compose, curl (https)
|
||||||
|
|
||||||
export VOLDIR="/volumes/media-server"
|
export VOLDIR="/volumes/media-server"
|
||||||
|
<<<<<<< HEAD
|
||||||
SERVICES=("couchpotato" "deluge" "nzbget" "plex" "plexpy" "sickrage" "launcher")
|
SERVICES=("couchpotato" "deluge" "nzbget" "plex" "plexpy" "sickrage" "launcher")
|
||||||
SERVICEUID=("745" "647" "236" "787" "426" "439" "0")
|
SERVICEUID=("745" "647" "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")
|
||||||
|
>>>>>>> master
|
||||||
|
|
||||||
[[ $EUID -ne 0 ]] && echo "Please run this script as root" && exit 1
|
[[ $EUID -ne 0 ]] && echo "Please run this script as root" && exit 1
|
||||||
|
|
||||||
@ -27,6 +32,7 @@ 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 -R ${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
|
done
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
#Since we are not using net=host, we need to whitelist the subnet in plex. ##TODO## Make this overrideable with commandline argument
|
#Since we are not using net=host, we need to whitelist the subnet in plex. ##TODO## Make this overrideable with commandline argument
|
||||||
[[ ! -a $VOLDIR/plex/Plex\ Media\ Server/Preferences.xml ]] && echo Adding subnet to Plex Whitelist... && mkdir -p $VOLDIR/plex/Plex\ Media\ Server/ && \
|
[[ ! -a $VOLDIR/plex/Plex\ Media\ Server/Preferences.xml ]] && echo Adding subnet to Plex Whitelist... && mkdir -p $VOLDIR/plex/Plex\ Media\ Server/ && \
|
||||||
echo -e "<?xml version="1.0" encoding="utf-8"?>\n<Preferences allowedNetworks="$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | grep -v '172.*')/255.255.0.0" />" > $VOLDIR/plex/Plex\ Media\ Server/Preferences.xml && chown -R 787:787 $VOLDIR/plex
|
echo -e "<?xml version="1.0" encoding="utf-8"?>\n<Preferences allowedNetworks="$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | grep -v '172.*')/255.255.0.0" />" > $VOLDIR/plex/Plex\ Media\ Server/Preferences.xml && chown -R 787:787 $VOLDIR/plex
|
||||||
@ -39,3 +45,8 @@ echo "# Config and directory struture OK! #"
|
|||||||
echo "#####################################"
|
echo "#####################################"
|
||||||
echo
|
echo
|
||||||
echo "Run docker-compose up -d to start the containers..."
|
echo "Run docker-compose up -d to start the containers..."
|
||||||
|
=======
|
||||||
|
[[ ! -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
|
||||||
|
>>>>>>> master
|
||||||
|
Loading…
Reference in New Issue
Block a user