Comments (12)
We will probably just adjust the wiki to match this behavior. I thought the tool we're using for yml merge would merge volumes, but I guess I misread the documentation for it. I'll do some tests to confirm and then change the wiki
from dockstarter.
@oranblackwell Can I ask what you were trying to do? Did you want to mount your ${MEDIADIR_MOVIES}
in two separate locations?
from dockstarter.
@JonathonSunshine basically, I wanted to nest the tv and movie folders under /media as opposed to directly in the root directory.
If merging isnt an option I think being able to add additional volume(s) via the .env would be very handy.
Possibly create faux-arrays in .env, and then process them accordingly.
SONARR_ADDITIONAL_VOLUMES="/first/path/to/host|/first/path/to/service,/second/path/to/host|/second/path/to/service"
RADARR_ADDITIONAL_VOLUMES="/another/path/to/host|/another/path/to/service" COMMON_ADDITIONAL_VOLUMES="/mnt|/mnt"
from dockstarter.
So you have MEDIADIR_TV=/some/folder/media/tv
in your .env
and you want sonarr to be able to use either /tv
or /media/tv
but both actually point to /some/folder/media/tv
?
from dockstarter.
@oranblackwell Hi, I messed around with my over ride like this
version: "3.6"
services:
sonarr:
image: linuxserver/sonarr
container_name: sonarr
restart: always
environment:
- PGID=${PGID}
- PUID=${PUID}
- TZ=${TZ}
volumes:
- ${DOCKERCONFDIR}/sonarr:/config
- ${DOWNLOADSDIR}:/downloads
- ${MEDIADIR_TV}:/tv
- ${MEDIADIR_TV}:/testsecondmount
It was just a straight copy of the sonarr.yml
with the testsecondmount
line added and I was able to browse the TV mnt from both locations within Sonarr.
In your override, you only had the one line, and it lived up to its name by override ing the default value, if you want to map the same location to two places, you have it both times I guess
from dockstarter.
@oranblackwell but to "to nest the tv and movie folders under /media", in the .env
ironment file, just set the global TV mnt to /media. But in Sonarr,
My most recent install, when I started with DockSTARTer, I formatted my SSD in 2 partitions, 32gb and 200GB, install on the 32, mounted the 200gb as /mnt/p2pDownloads
Then,
/mnt/TV # points to root of my tv hdd
/mnt/Movies # this is an empty folder but inside i have mounted two more HDD, movies1 and 2
The default behaviour in .env
suggests a mediafolder
but I just put them in but I didn't do that. So if you want to run it that way, just a make a folder with all your TV and Movies and mount that as the TV and Movies locations.
from dockstarter.
@nemchik @JonathonSunshine So, I didn't actually need to keep ${MEDIADIR_TV}:/tv
but I didnt see an easy way to remove it without modifying base files. From reading the override's wiki entry I thought it would be better to keep the base version of the yml file to get any future release changes, with only my personal preferences in the override, but as @nemchik mentioned earlier the merge tool may not allow for this.
For what its worth, before I switched over to DockSTARTer I was running docker from a 16Gb SD Card on a Pi, with a 500Gb USB drive for downloading and extracting of files, and then moving them to a 3tb network drive for playback (ie. via Plex Media Server). My focus had been much less ambitious then DockSTARTer, so I chose to structure things a small bit differently, which gave me control of the container directories from the .env
I had mapped out the NZBGet and Deluge configs like below and my intention was to figure out how to automatically inject these variables directly into the programs config files but I discovered DockSTARTer before I had a chance.
NZBGet Structure
# MainDir /downloads
# DestDir ${MainDir}/completed
# InterDir ${MainDir}/intermediate
# NZBs Dir ${MainDir}/black-hole
# NZBs Queue Dir ${MainDir}/nzb-queue
Deluge Structure
# DownloadTo /downloads/intermediate
# Move Completed To /downloads/completed
# Autoadd from /downloads/black-hole
.env
DOWNLOADSDIR_USB=/mnt/usb/downloads
DOWNLOADSDIR_CONTAINER=/downloads
MEDIADIR_NET=/mnt/net
MEDIADIR_CONTAINER=/media
docker-compose.yml
# --------------------------------------------------------------------------------
# Sonarr – TV Show Download and Management
# --------------------------------------------------------------------------------
sonarr:
container_name: sonarr
image: lsioarmhf/sonarr:latest
restart: unless-stopped
ports:
- '${IP_ADDRESS}:8989:8989'
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- '${CONFIGDIR}/sonarr:/config'
- '${DOWNLOADSDIR_USB}:${DOWNLOADSDIR_CONTAINER}'
- '${MEDIADIR_NET}/tv:${MEDIADIR_CONTAINER}/tv'
# --------------------------------------------------------------------------------
# Radarr – Movie Download and Management
# --------------------------------------------------------------------------------
radarr:
container_name: radarr
image: lsioarmhf/radarr:latest
restart: unless-stopped
ports:
- '${IP_ADDRESS}:7878:7878'
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- '${CONFIGDIR}/radarr:/config'
- '${DOWNLOADSDIR_USB}:${DOWNLOADSDIR_CONTAINER}'
- '${MEDIADIR_NET}/movies:${MEDIADIR_CONTAINER}/movies'
from dockstarter.
@oranblackwell would you be willing to join us on gitter? https://gitter.im/GhostWriters/DockSTARTer I've got questions about your former setup that will be easier to discuss in chat. I'd like to discuss your usage scenarios and see if it's something that makes sense to include in DockSTARTer.
from dockstarter.
What I think makes sense for you with DockSTARTer is to set .env
with these:
DOWNLOADSDIR=/mnt/usb/downloads
MEDIADIR_MOVIES=/mnt/net/movies
MEDIADIR_TV=/mnt/net/tv
And then in the containers use /downloads
just like your already are, and instead of /media/movies
in radarr just use /movies
, and instead of /media/tv
in sonarr just use /tv
. This should have you set almost exactly like you were before DockSTARTer. Both sonarr and radarr have options to mass move (edit) the root directories so you can make the switch above very easily.
Still wouldn't mind to chat on gitter, you can let me know if I'm overlooking something :)
from dockstarter.
@oranblackwell After our discussion on Gitter it sounds like you just want the folders to be different on the inside of the containers because of your personal preference, and I outlined briefly that you can do this with overrides. Do you need any additional help with this? (trying to figure out if we need to do anything else to resolve this issue before closing)
from dockstarter.
I'm going to close this for now as I believe the answer above resolves the issue, but if anyone is still having trouble with this just reply here and we'll reopen and see if there's another way to address it.
from dockstarter.
@nemchik only seeing this now. Thanks for your help.
from dockstarter.
Related Issues (20)
- [Application Request] wg-easy HOT 5
- [Application Request] Kapowarr HOT 3
- [BUG] Rootless docker requires changes to /var/run/docker.sock binding HOT 5
- [BUG] Apprise - Error response from daemon: invalid reference format HOT 1
- Documentation per App - add port/url HOT 1
- Feature request: Include Tandoor Recipes HOT 1
- [Application Request] Navidrome HOT 1
- [Application Request] Kavita HOT 1
- [BUG] Containers installed via override don't inherit system time/timezone HOT 3
- [BUG] calibre-web installs as calibreweb in dockstarter, this breaks swag. HOT 1
- [Application Request] Speedtest Tracker HOT 1
- Migrate from cr.hotio.dev to ghcr.io
- [BUG] Install Broke Linux Mint HOT 1
- [Feature Request] Ability to install in CoreOS HOT 2
- [Application Request] Real-Debrid Client Proxy
- [BUG] Unifi Controller image was deprecated by linuxserver.io
- Mosquitto docker restarts continuously
- Komga container port - 25600 HOT 2
- [BUG] `version` is obsolete warning for two files
- [Feature Request] IPv6 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockstarter.