Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compose File & Mounting External Hard Drive #56

Open
getinthespirits opened this issue Feb 4, 2021 · 4 comments
Open

Compose File & Mounting External Hard Drive #56

getinthespirits opened this issue Feb 4, 2021 · 4 comments

Comments

@getinthespirits
Copy link

getinthespirits commented Feb 4, 2021

I already have a significant media library and want to be able to make this available to plex as well. I am aware that I likely need to change the mount point for the hard drive and to adjust the docker compose yaml file to pick the folders up as well.

What would be the best way of going about this?

Note - I am using a RPI4 running raspberry pi os.

@emkowale
Copy link

emkowale commented Mar 9, 2021

Yeah this was a trip to configure. You have to wrap your brain around how the docker-compose.yml works. Look at my deluge section here. Notice the difference between my downloads folder and config file.

deluge:
container_name: deluge
image: linuxserver/deluge:latest
restart: unless-stopped
network_mode: host
environment:
- PUID=${PUID} # default user id, defined in .env
- PGID=${PGID} # default group id, defined in .env
- TZ=${TZ} # timezone, defined in .env
volumes:
- /mnt/downloads:/downloads # downloads folder
- /home/pi/config/deluge:/config # config files

My directory structure is like this:

/home/pi/config/(ALL OF THE CONFIG FILES)

/home/pi/htpc-download-box/(ALL OF THE STUFF TO BUILD THIS PACKAGE)

/mnt/downloads - This is a mount to a physical hard drive on another raspberry pi.
In the /etc/fstab file I do:
10.255.252.33:/mnt/drive2 /mnt/downloads nfs rw,nofail 0 0
That makes the mount happened on boot. Notice the nofail. Very cool. If the remote raspberry pi isn't available for whatever reason, your pi will still boot.

So...
/mnt/downloads/incomplete
/mnt/downloads/complete
/mnt/downloads/complete/tv
/mnt/downloads/complete/movies

That's my story. The only thing I don't have working is the renaming and removing. Sonarr and Radarr simply will not remove the old torrents from Deulge once they are done, but that's another issue I might post when I'm not at work. :)

@jbusuttil83
Copy link
Contributor

@emkowale most of the time the problem you have with sonarr and radarr is linux folder permissions

@emkowale
Copy link

emkowale commented Mar 9, 2021

Thank you my friend. I'll look at that right now.

@emkowale
Copy link

emkowale commented Mar 9, 2021

Bummer. Not it. I just checked and /mnt/downloads is owned by pi which is my $USER specified in the .env file. Also, when I mount the /mnt/downloads share using 10.255.252.33:/mnt/drive2 /mnt/downloads nfs rw,nofail 0 0 in the fstab file everything is owned by root with rwxrwxrwx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants