Skip to content

Instantly share code, notes, and snippets.

@spikegrobstein
Last active April 13, 2024 18:38
Show Gist options
  • Save spikegrobstein/0989b8492a96900f0957483e3e4fbb16 to your computer and use it in GitHub Desktop.
Save spikegrobstein/0989b8492a96900f0957483e3e4fbb16 to your computer and use it in GitHub Desktop.
docker-compose file for sabnzbd/sonarr/radarr
# start up with 'docker-compose up -d' to start in background
# update images with 'docker-compose pull'
# this assumes that you have a sibling directory to this file called 'config' that contains all of the config for these services
# you can reference 'sabnzbd' 'radarr' or 'sonarr' from inside the containers (in the apps) to reference the other containers. no need to deal with IPs or hostnames
# remember that docker is isolated from the rest of your filesystem. you need to add volumes to the entries
# in order to give the processes access to them. so if you have multiple target directories for TV or Movies,
# then make sure you add each one that you want radarr/sonarr/sabnzbd to see.
version: '3'
services:
sabnzbd:
image: linuxserver/sabnzbd
ports:
- "8080:8080" # port mapping
volumes:
- "./config/sabnzbd:/config" # sab config directory
- "/storage/Downloads/complete:/downloads" # completed directory for downloads. this contains the category directories
- "/downloads/incomplete:/incomplete-downloads" # "temp" directory for downloads
environment:
TZ: UTC
PUID: 501 # set to UID of your user
PGID: 501 # set to GID of your user
radarr:
image: linuxserver/radarr
ports:
- "7878:7878" # port mapping
volumes:
- "./config/radarr:/config" # config directory for radarr
- "/storage/Downloads/complete:/downloads" # completed downloads directory from sab
- "/storage/Movies:/storage/Movies" # where radarr will copy your movies. add as many of these as you need
environment:
TZ: UTC
PUID: 501 # set this to the UID of your user
PGID: 501 # set this to the GID of your user
sonarr:
image: linuxserver/sonarr
ports:
- "8989:8989" # port mapping
volumes:
- "./config/sonarr:/config" # sonarr config dir
- "/storage/Downloads/complete:/downloads" # your completed downloads directory from sab
- "/storage/TV:/storage/TV" # where it will copy your files when done. add as many of these as you need
environment:
TZ: UTC
PUID: 501 # set this to the UID of your user
PGID: 501 # set this to the GID of your user
@Vortilion
Copy link

Referring to sabnzbd via hostname only works if you add the string "sabnzbd" to the host_whitelist option in sabnzbd, otherwise it will block all requests!

@Abushawish
Copy link

This is helpful, thank you! Question: Do you define any categories within Sabnzbd?

@sym0nd0
Copy link

sym0nd0 commented Mar 23, 2023

@Vortilion THANK YOU! It has been driving me insane and some random Googling brought me here (so thanks @spikegrobstein too), this is the only way I've been able to get SABnzbd added to Sonarr (both via Docker) as a download client.

@Vortilion
Copy link

Vortilion commented Mar 23, 2023

@sym0nd0 i@ I feel you. Had the same unpleasant experience for days. You could have added it via IP though, that should still have worked. Either way I’m glad it worked out for you!

@Aqui1us
Copy link

Aqui1us commented Apr 13, 2024

Referring to sabnzbd via hostname only works if you add the string "sabnzbd" to the host_whitelist option in sabnzbd, otherwise it will block all requests!

Also thank you, I was loosing my mind over why referencing the container didn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment