1
0
mirror of https://github.com/Adam-Ant/media-server-in-a-box synced 2024-11-14 08:26:21 +00:00

User ID and directory structure refactor

This commit is contained in:
Adam Dodman 2017-04-09 01:53:06 +01:00
parent 6196e1bdf0
commit 203a58ea03
2 changed files with 13 additions and 15 deletions

View File

@ -1,26 +1,19 @@
version: '2'
services:
data:
image: tianon/true
volumes:
- $VOLDIR:/config
nzbget:
image: adamant/nzbget
depends_on:
- data
volumes:
- $VOLDIR/nzbget:/config
volumes_from:
- data
- container:media
restart: always
deluge:
image: adamant/deluge
depends_on:
- data
volumes:
- $VOLDIR/deluge:/config
volumes_from:
- data
- container:media
restart: always
@ -29,8 +22,9 @@ services:
depends_on:
- deluge
- nzbget
volumes:
- $VOLDIR/sickrage:/config
volumes_from:
- data
- container:media
restart: always
@ -39,8 +33,9 @@ services:
depends_on:
- deluge
- nzbget
volumes:
- $VOLDIR/couchpotato:/config
volumes_from:
- data
- container:media
restart: always
@ -49,8 +44,9 @@ services:
depends_on:
- sickrage
- couchpotato
volumes:
- $VOLDIR/plex:/config/Plex\ Media\ Server
volumes_from:
- data
- container:media
restart: always
ports:
@ -69,6 +65,8 @@ services:
- plex
volumes_from:
- data
volumes:
- $VOLDIR/plexpy:/config
restart: always
web:

View File

@ -5,7 +5,7 @@
export VOLDIR="/volumes/media-server"
SERVICES=("couchpotato" "deluge" "nzbget" "plex" "plexpy" "sickrage" "nginx")
SERVICEUID=("745" "647" "236" "787" "426" "439" "0")
SERVICEUID=("901" "902" "904" "900" "905" "906" "0")
[[ $EUID -ne 0 ]] && echo "Please run this script as root" && exit 1