• 1 Post
  • 4 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle

  • If I’ve learned something about selfhosting and backups it is that you can trust HDDs to spin for 3-5 years and should still do backups. I myself do backups to HDDs that are only powered on for these backups. I’m still not sure if thats enougth.

    Raid is more for an always-on solution, but not great for safe backups. They still might get damaged at the same time, because you bought them at the same time, from the same vendor and they have the same usage time.



  • services:
      wireguard:
        image: lscr.io/linuxserver/wireguard:latest
        container_name: wireguard
        cap_add:
          - NET_ADMIN
          #- SYS_MODULE #needed if wireguard kernel module gets not loaded
        environment:
          - PUID=995
          - PGID=995
          - TZ=Europe/Vienna
        volumes:
          - wireguard_config:/config
          #- /lib/modules:/lib/modules stack #needed if wireguard kernel module gets not loaded
        ports:
          - 51820:51820
          - 51820:51820/udp
          - 8113:8113 #qbt WebUI - This is not necessary with trafik, I still have it for debug reasons and it's only reachable in my local network so I think its fine
        networks:
          - net
        labels:
          - traefik.enable=true
        sysctls:
          - net.ipv4.conf.all.src_valid_mark=1
          - net.ipv6.conf.all.disable_ipv6=0
        restart: unless-stopped
    
      qbittorrent:
        image: lscr.io/linuxserver/qbittorrent:latest
        container_name: qbittorrent
        network_mode: service:wireguard
        depends_on:
          - wireguard
        environment:
          - PUID=1004
          - PGID=1004
          - UMASK=002
          - TZ=Europe/Berlin
          - WEBUI_PORT=8113
        volumes:
          - qbt_config:/config
          - torrents:/data/torrents
          - media:/data/media
        labels:
          - traefik.enable=true
          - traefik.http.services.qbt.loadbalancer.server.port=8113
          - traefik.http.routers.qbt.rule=Host(`torrent.example.com`)
          - traefik.http.routers.qbt.middlewares=https-redirect@file
          - traefik.http.routers.qbt-secure.rule=Host(`torrent.example.com`)
          - traefik.http.routers.qbt-secure.entrypoints=websecure
          - traefik.http.routers.qbt-secure.tls=true
          - traefik.http.routers.qbt-secure.service=qbt
        restart: unless-stopped