From e24a44bc2388e7d118777476b171803d3b8ef1e1 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Thu, 15 Feb 2024 09:27:08 +0100 Subject: [PATCH] add jellyseerr service --- docker_swarm/roles/media/docker-stack.yml.j2 | 36 ++++++++++++++++++-- docker_swarm/roles/media/vars/main.yml | 1 + nixos/modules/data-sharing.nix | 1 + 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 docker_swarm/roles/media/vars/main.yml diff --git a/docker_swarm/roles/media/docker-stack.yml.j2 b/docker_swarm/roles/media/docker-stack.yml.j2 index 930f017..c8597c7 100644 --- a/docker_swarm/roles/media/docker-stack.yml.j2 +++ b/docker_swarm/roles/media/docker-stack.yml.j2 @@ -21,6 +21,11 @@ volumes: type: "nfs" o: "addr=lewis.dmz,nolock,soft,rw" device: ":/mnt/data/nfs/transmission/config" + jellyseerr_config: + driver_opts: + type: "nfs" + o: "addr=lewis.dmz,nolock,soft,rw" + device: ":/mnt/data/nfs/jellyseerr/config" jellyfin_cache: services: @@ -58,11 +63,11 @@ services: - traefik.http.services.jellyfin.loadbalancer.server.port=8096 - traefik.docker.network=traefik - # TODO: port forward torrent ports: - # - 51413:51413 - # - 51413:51413/udp transmission: image: lscr.io/linuxserver/transmission:latest + ports: + - "{{ bittorrent_port }}:{{ bittorrent_port }}" + - "{{ bittorrent_port }}:{{ bittorrent_port }}/udp" environment: - PUID=1000 - PGID=1000 @@ -90,3 +95,28 @@ services: - traefik.http.routers.transmission.service=transmission - traefik.http.services.transmission.loadbalancer.server.port=9091 - traefik.docker.network=traefik + + jellyseerr: + image: fallenbagel/jellyseerr:1.7.0 + environment: + # TODO: fix log level + - LOG_LEVEL=debug + - TZ=Europe/Amsterdam + volumes: + - type: volume + source: jellyseerr_config + target: /app/config + volume: + nocopy: true + networks: + - traefik + deploy: + labels: + - traefik.enable=true + - traefik.http.routers.jellyseerr.entrypoints=localsecure + - traefik.http.routers.jellyseerr.rule=Host(`jellyseerr.kun.is`) + - traefik.http.routers.jellyseerr.tls=true + - traefik.http.routers.jellyseerr.tls.certresolver=letsencrypt + - traefik.http.routers.jellyseerr.service=jellyseerr + - traefik.http.services.jellyseerr.loadbalancer.server.port=5055 + - traefik.docker.network=traefik diff --git a/docker_swarm/roles/media/vars/main.yml b/docker_swarm/roles/media/vars/main.yml new file mode 100644 index 0000000..2d75cdc --- /dev/null +++ b/docker_swarm/roles/media/vars/main.yml @@ -0,0 +1 @@ +bittorrent_port: 31780 diff --git a/nixos/modules/data-sharing.nix b/nixos/modules/data-sharing.nix index da52114..e41d87a 100644 --- a/nixos/modules/data-sharing.nix +++ b/nixos/modules/data-sharing.nix @@ -23,6 +23,7 @@ let "/media/shows" "/jellyfin/config" "/transmission/config" + "/jellyseerr/config" ]; nfsExports = lib.strings.concatLines (