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:
parent
6196e1bdf0
commit
203a58ea03
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user