add sonarr to media stack

This commit is contained in:
Pim Kunis 2024-02-18 18:19:39 +01:00
parent 1a81be138d
commit 0d2952c006
2 changed files with 36 additions and 0 deletions

View file

@ -31,6 +31,11 @@ volumes:
type: "nfs"
o: "addr=lewis.dmz,nolock,soft,rw"
device: ":/mnt/data/nfs/radarr/config"
sonarr_config:
driver_opts:
type: "nfs"
o: "addr=lewis.dmz,nolock,soft,rw"
device: ":/mnt/data/nfs/sonarr/config"
prowlarr_config:
driver_opts:
type: "nfs"
@ -185,3 +190,33 @@ services:
- traefik.http.routers.prowlarr.service=prowlarr
- traefik.http.services.prowlarr.loadbalancer.server.port=9696
- traefik.docker.network=traefik
sonarr:
image: lscr.io/linuxserver/sonarr:latest
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Amsterdam
volumes:
- type: volume
source: sonarr_config
target: /config
volume:
nocopy: true
- type: volume
source: media
target: /media
volume:
nocopy: true
networks:
- traefik
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.sonarr.entrypoints=localsecure
- traefik.http.routers.sonarr.rule=Host(`sonarr.kun.is`)
- traefik.http.routers.sonarr.tls=true
- traefik.http.routers.sonarr.tls.certresolver=letsencrypt
- traefik.http.routers.sonarr.service=sonarr
- traefik.http.services.sonarr.loadbalancer.server.port=8989
- traefik.docker.network=traefik

View file

@ -26,6 +26,7 @@ let
"/jellyseerr/config"
"/radarr/config"
"/prowlarr/config"
"/sonarr/config"
];
nfsExports = lib.strings.concatLines (