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 (