From aa57171eda850f5b1d8e27c8636efad705f8406e Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 24 Feb 2024 21:45:29 +0100 Subject: [PATCH] add bazzar to media stack --- .gitignore | 1 + docker_swarm/roles/media/docker-stack.yml.j2 | 35 ++++++++++++++++++++ nixos/modules/data-sharing.nix | 1 + 3 files changed, 37 insertions(+) diff --git a/.gitignore b/.gitignore index aab1529..f40e1ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .direnv .terraform.lock.hcl .terraform +.deploy-gc/ diff --git a/docker_swarm/roles/media/docker-stack.yml.j2 b/docker_swarm/roles/media/docker-stack.yml.j2 index 566f69c..96bf1c6 100644 --- a/docker_swarm/roles/media/docker-stack.yml.j2 +++ b/docker_swarm/roles/media/docker-stack.yml.j2 @@ -41,6 +41,11 @@ volumes: type: "nfs" o: "addr=lewis.dmz,nolock,soft,rw" device: ":/mnt/data/nfs/prowlarr/config" + bazarr_config: + driver_opts: + type: "nfs" + o: "addr=lewis.dmz,nolock,soft,rw" + device: ":/mnt/data/nfs/bazarr/config" jellyfin_cache: services: @@ -220,3 +225,33 @@ services: - traefik.http.routers.sonarr.service=sonarr - traefik.http.services.sonarr.loadbalancer.server.port=8989 - traefik.docker.network=traefik + + bazarr: + image: lscr.io/linuxserver/bazarr:latest + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Amsterdam + volumes: + - type: volume + source: bazarr_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.bazarr.entrypoints=localsecure + - traefik.http.routers.bazarr.rule=Host(`bazarr.kun.is`) + - traefik.http.routers.bazarr.tls=true + - traefik.http.routers.bazarr.tls.certresolver=letsencrypt + - traefik.http.routers.bazarr.service=bazarr + - traefik.http.services.bazarr.loadbalancer.server.port=6767 + - traefik.docker.network=traefik diff --git a/nixos/modules/data-sharing.nix b/nixos/modules/data-sharing.nix index c97b79a..c74c7e1 100644 --- a/nixos/modules/data-sharing.nix +++ b/nixos/modules/data-sharing.nix @@ -27,6 +27,7 @@ let "/radarr/config" "/prowlarr/config" "/sonarr/config" + "/bazarr/config" ]; nfsExports = lib.strings.concatLines (