linuxserver / docker-nzbget

GNU General Public License v3.0
149 stars 83 forks source link

Remove downloads volume from Dockerfile #95

Closed mbarnes closed 4 years ago

mbarnes commented 4 years ago

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.


Expected Behavior

As was done recently for the Sonarr and Radarr images, please remove the /downloads volume in the Dockerfile since a different path can be specified in nzbget.conf.

I use all three of these services together and the mounted volume paths have to agree in all the containers for Sonarr and Radarr to interact correctly with NZBGet.

Current Behavior

The current Dockerfile includes the line

VOLUME /config /downloads

which results in an unnecessary Docker volume if a different downloads path is being used.

Environment

OS: OSMC (Debian-based) CPU architecture: arm64

Command used to create docker container (run/create/compose/screenshot)

The MainDir setting in the config file is /mnt/storage/Downloads.

[Unit]
Description=NZBGet (container)
Requires=docker.service
After=docker.service

[Service]
Restart=always
RestartSec=30

ExecStart=/usr/bin/docker run --rm \
                              --name=nzbget \
                              -p 6789:6789 \
                              -v /home/osmc/.config/NZBGet:/config \
                              -v /mnt/storage:/mnt/storage \
                              -e PGID=1000 -e PUID=1000 \
                              -e TZ=America/New_York \
                              linuxserver/nzbget

ExecStop=/usr/bin/docker stop nzbget

[Install]
WantedBy=multi-user.target