saltyorg / Sandbox

Saltbox Sandbox
GNU General Public License v3.0
68 stars 94 forks source link

App request: Spotweb-docker #144

Closed zeroquinc closed 11 months ago

zeroquinc commented 1 year ago

Spotweb-docker

This is used to host your own Spotweb, mostly for Dutch NZB's. Selfhosting is the only way to add the API to Prowlarr.

Docker image

Docker compose that I use that works

services:
  spotweb:
    restart: unless-stopped
    container_name: spotweb
    image: jgeusebroek/spotweb
    hostname: spotweb
    environment:
      - PUID=1000
      - PGID=1001
      - TZ=Europe/Amsterdam
      - SPOTWEB_DB_TYPE=pdo_mysql
      - SPOTWEB_DB_HOST=spotweb_db
      - SPOTWEB_DB_PORT=3306
      - SPOTWEB_DB_NAME=spotweb
      - SPOTWEB_DB_USER=spotweb
      - SPOTWEB_DB_PASS=spotweb
      - "SPOTWEB_CRON_RETRIEVE=* */2 * * *"
    depends_on:
      - spotweb_db
    networks:
      - saltbox
    labels:
      traefik.enable: true
      traefik.http.routers.spotweb-http.entrypoints: web
      traefik.http.routers.spotweb-http.middlewares: globalHeaders@file,redirect-to-https,gzip
      traefik.http.routers.spotweb-http.rule: Host(`spotweb.domain.tld`)
      traefik.http.routers.spotweb-http.service: spotweb
      traefik.http.routers.spotweb.entrypoints: websecure
      traefik.http.routers.spotweb.middlewares: globalHeaders@file,secureHeaders@file
      traefik.http.routers.spotweb.rule: Host(`spotweb.domain.tld`)
      traefik.http.routers.spotweb.service: spotweb
      traefik.http.routers.spotweb.tls.certresolver: cfdns
      traefik.http.routers.spotweb.tls.options: securetls@file
      traefik.http.services.spotweb.loadbalancer.server.port: 80
    volumes:
      - /opt/spotweb:/config
      - /etc/localtime:/etc/localtime:ro
  spotweb_db:
    image: linuxserver/mariadb
    container_name: spotweb_db
    restart: unless-stopped
    environment:
     - PUID=1000
     - PGID=1001
     - MYSQL_ROOT_PASSWORD=spotweb
     - TZ=Europe/Amsterdam
     - MYSQL_DATABASE=spotweb
     - MYSQL_USER=spotweb
     - MYSQL_PASSWORD=spotweb
    volumes:
     - /opt/mariadb:/config
    networks:
      - saltbox
networks:
  saltbox:
    external: true

Good to know

To be able to get it work with Traefik you need to edit ownsettings.php in /var/www/spotweb/ and add the following:

<?php
   $settings['ssloverride'] = true;
?>
JigSawFr commented 1 year ago

WIP by @RaneyDazed (just to avoid duplicates) 😇

maximuskowalski commented 1 year ago

@RaneyDazed or @JigSawFr is this still a WIP?

RaneyDazed commented 1 year ago

No, not at the moment, I gave up on it a while back because I got too busy. If you'd like me to give it a go again I can. Just lmk. Right now its on the back burner. I can do some docs or whatever is a priority.

maximuskowalski commented 1 year ago

All good - just taking a pass through all the issues and cleaning up.

owine commented 11 months ago

After a poll in Discord, this role is not planned. Feel free to submit a PR if the role is desired.