diff --git a/swarm/sabnzbd.yaml b/swarm/sabnzbd.yaml index 76ed989..295c5d4 100644 --- a/swarm/sabnzbd.yaml +++ b/swarm/sabnzbd.yaml @@ -1,39 +1,54 @@ -services: - Sabnzbd: +# Run with docker stack deploy -c sabnzbd.yaml sabnzbd +services: + sabnzbd: image: linuxserver/sabnzbd - container_name: sabnzbd hostname: sabnzbd + environment: + TZ: America/Chicago + PGID: "1964" + PUID: "1964" + volumes: + - /data/nfs/znas/Docker/Sabnzbd:/config + - /data/nfs/znas/Data/:/data:shared + ports: + - 8082:8080 networks: - netgrimoire - ports: - - 8082:8080 - volumes: - - /data/nfs/znas/Data/:/data:shared - - /data/nfs/znas/Docker/Sabnzbd:/config - environment: - - TZ=America/Chicago - - PGID=1964 - - PUID=1964 - restart: unless-stopped deploy: - labels: - - homepage.group=Jolly Roger - - homepage.name=Sabnzbd - - homepage.icon=sabnzbd.png - - homepage.href=http://sabnzbd.netgrimoire.com - - homepage.description=Usenet Downloader - - homepage.widget.type=sabnzbd - - homepage.widget.url=http://sabnzbd:8080 - - homepage.widget.key=ac2fcd48264c0a113ef33ab593958a52 - - kuma.sab.http.name="Sabnzbd" - - kuma.sab.http.url=http://sabnzbd:8080 - - caddy=sabnzbd.netgrimoire.com - - caddy.import=authentik - - caddy.reverse_proxy="{{upstreams 8080}}" + restart_policy: + condition: any + delay: 5s + max_attempts: 3 + window: 120s placement: constraints: - - node.labels.general == true + - node.labels.general == true + - node.platform.arch != arm64 + - node.platform.arch != arm + labels: + # --- Caddy --- + caddy: sabnzbd.netgrimoire.com + caddy.reverse_proxy: sabnzbd:8080 + caddy.import: crowdsec + caddy.import_1: authentik + + # --- Uptime Kuma --- + kuma.sabnzbd.http.name: SABnzbd + kuma.sabnzbd.http.url: https://sabnzbd.netgrimoire.com + + # --- Homepage --- + homepage.group: Jolly Roger + homepage.name: SABnzbd + homepage.icon: sabnzbd.png + homepage.href: https://sabnzbd.netgrimoire.com + homepage.description: Usenet Downloader + homepage.widget.type: sabnzbd + homepage.widget.url: http://sabnzbd:8080 + homepage.widget.key: ac2fcd48264c0a113ef33ab593958a52 + + # --- DIUN --- + diun.enable: "true" networks: netgrimoire: - external: true \ No newline at end of file + external: true \ No newline at end of file