services:
  jellyfin:
    image: jellyfin/jellyfin
    restart: unless-stopped
    user: 1337:1337
    hostname: Jellyfin
    volumes:
      - ./data/config/jellyfin:/config
      - cache:/cache
      - ./data/media:/media
  radarr:
    image: linuxserver/radarr
    restart: unless-stopped
    environment:
      PUID: 1337
      PGID: 1337
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./data/config/radarr:/config
      - ./data/media/movies:/movies
      - ./data/downloads:/downloads
  sonarr:
    image: linuxserver/sonarr
    restart: unless-stopped
    environment:
      PUID: 1337
      PGID: 1337
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./data/config/sonarr:/config
      - ./data/media/series:/tv
      - ./data/downloads:/downloads
  lidarr:
    image: linuxserver/lidarr
    restart: unless-stopped
    environment:
      PUID: 1337
      PGID: 1337
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./data/config/lidarr:/config
      - ./data/media/music:/music
      - ./data/downloads:/downloads
  prowlarr:
    image: linuxserver/prowlarr
    restart: unless-stopped
    environment:
      PUID: 1337
      PGID: 1337
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./data/config/prowlarr:/config
  flaresolverr:
    image: flaresolverr/flaresolverr
    restart: unless-stopped
    environment:
      LOG_LEVEL: info
      LOG_HTML: "false"
      CAPTCHA_SOLVER: none
  privoxy:
    build:
      context: .
      dockerfile_inline: |
        FROM walt3rl/proton-privoxy
        RUN apk --update add ip6tables
    restart: unless-stopped
    volumes:
      - /etc/localtime:/etc/localtime:ro
    devices:
      - /dev/net/tun
    cap_add:
      - NET_ADMIN
  flood:
    image: jesec/flood
    restart: unless-stopped
    user: 1337:1337
    command: --baseuri /flood
             --rundir /flood
             --allowedpath /downloads
             --rtsocket /rtorrent/.local/share/rtorrent/rtorrent.sock
    volumes:
      - ./data/config/flood:/flood
      - ./data/downloads:/downloads
      - rtorrent:/rtorrent
  rtorrent:
    build:
      dockerfile: ./rtorrent.Dockerfile
      context: .
    restart: unless-stopped
    hostname: rtorrent
    environment:
      PUID: 1337
      PGID: 1337
      PHOME: /config
      MAX_UPTIME: 43200
    command: -o ratio.enable=
             -o ratio.min.set=200
             -o ratio.max.set=10000
             -o directory.default.set=/downloads
             -o 'method.set=group.seeding.ratio.command, "d.cloase = ; d.erase = "'
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - rtorrent:/config
      - ./data/downloads:/downloads
      - ./data/proton:/proton
    devices:
      - /dev/net/tun
    cap_add:
      - NET_ADMIN
#  transmission:
#    build:
#      dockerfile: ./transmission.Dockerfile
#      context: .
#    restart: unless-stopped
#    hostname: transmission
#    env_file:
#      - ./proton.env
#    environment:
#      PUID: 1337
#      PGID: 1337
#      PVPN_TIER: 1337
#      TZ: Europe/Zurich
#      TRANSMISSION_WEB_HOME: /transmission
#      TRANSMISSION_WEB_USER: "scott"
#      TRANSMISSION_WEB_PASS: "tiger"
#      MAX_UPTIME: -1
#    command: --no-incomplete-dir
#             --download-dir /downloads
#    ports:
#      - 127.0.0.1:1337:9091
#    volumes:
#      - ./config/transmission:/config
#      - ./downloads:/downloads
#      - /etc/localtime:/etc/localtime:ro
#    devices:
#      - /dev/net/tun
#    cap_add:
#      - NET_ADMIN

volumes:
  cache: {}
  rtorrent: {}