fix: bug fixes

This commit is contained in:
2026-07-02 15:28:58 -07:00
parent 1f84e78690
commit 227ce67f4d
8 changed files with 91 additions and 20 deletions
+26
View File
@@ -469,6 +469,32 @@ services:
restart: always restart: always
command: tunnel --no-autoupdate run --token eyJhIjoiMjUyZjQ3MWZkMzE2ZTg5NjI2ZjEzYzI1YzYwMTJiYzciLCJ0IjoiNWFhMDJlNmEtNDE2Ni00YTJkLTk1YzktMGFmMGY3MjM3YjIzIiwicyI6Ik5tWmhOR1V6WVRZdE5HRXdOaTAwT1RjekxXSTFPV1V0T0RrMU1UWTRabVl4WkRZeCJ9 command: tunnel --no-autoupdate run --token eyJhIjoiMjUyZjQ3MWZkMzE2ZTg5NjI2ZjEzYzI1YzYwMTJiYzciLCJ0IjoiNWFhMDJlNmEtNDE2Ni00YTJkLTk1YzktMGFmMGY3MjM3YjIzIiwicyI6Ik5tWmhOR1V6WVRZdE5HRXdOaTAwT1RjekxXSTFPV1V0T0RrMU1UWTRabVl4WkRZeCJ9
torrents-csv:
image: dessalines/torrents-csv-server:latest
restart: unless-stopped
ports:
- "8902:8902"
environment:
TORRENTS_CSV_DB_HOST: "postgres://postgres:password@db"
TORRENTS_CSV_FRONT_END_DIR: /app/dist
RUST_LOG: DEBUG
depends_on:
- db # search at 'http://shaan-server:8902/service/search?q={SEARCH_TERM'
db:
image: pgautoupgrade/pgautoupgrade:17-alpine
restart: unless-stopped
shm_size: 1gb
volumes:
- ./init-database.sh:/docker-entrypoint-initdb.d/init-database.sh
- ./init-database.sql:/var/lib/postgresql/init-database.sql
- ./torrents.csv:/var/lib/postgresql/torrents.csv
ports:
- "127.0.0.1:5433:5432"
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
# caddy: # caddy:
# build: # build:
# context: . # context: .
+15 -9
View File
@@ -5,31 +5,37 @@
- "Icons": - "Icons":
- "Plex": - "Plex":
- icon: si-plex-#EBAF00 - icon: si-plex-#EBAF00
href: https://github.com/dhaan7/torrent-stack href: {{HOMEPAGE_VAR_PLEX_HOST}}
- "LibreChat": - "LibreChat":
- icon: si-ollama-#FFFFFF - icon: si-ollama-#FFFFFF
href: https://0.0.0.0 href: http://shaan-server:7001
- "Sonarr": - "Sonarr":
- icon: si-sonarr-#2596BE - icon: si-sonarr-#2596BE
href: https://github.com/dhaan7/torrent-stack href: {{HOMEPAGE_VAR_SONARR_HOST}}
- "Radarr": - "Radarr":
- icon: si-radarr-#FFCB3D - icon: si-radarr-#FFCB3D
href: https://github.com/dhaan7/torrent-stack href: {{HOMEPAGE_VAR_RADARR_HOST}}
- "Lidarr": - "Lidarr":
- icon: si-youtubemusic-#499848 - icon: si-youtubemusic-#499848
href: https://github.com/dhaan7/torrent-stack href: {{HOMEPAGE_VAR_LIDARR_HOST}}
- "Tautulli":
- icon: sh-tautulli-light
href: {{HOMEPAGE_VAR_TAUTULLI_HOST}}
- "Tdarr":
- icon: sh-tdarr
href: {{HOMEPAGE_VAR_TDARR_HOST}}
- "qBittorrent": - "qBittorrent":
- icon: si-qbittorrent-#2F67BA - icon: si-qbittorrent-#2F67BA
href: https://github.com/dhaan7/torrent-stack href: http://shaan-server:2161
- "Seerr": - "Seerr":
- icon: sh-seerr-light - icon: sh-seerr-light
href: https://github.com/dhaan7/torrent-stack href: {{HOMEPAGE_VAR_SEERR_HOST}}
- "Prowlarr": - "Prowlarr":
- icon: sh-prowlarr-light - icon: sh-prowlarr-light
href: https://github.com/dhaan7/torrent-stack href: {{HOMEPAGE_VAR_PROWLARR_HOST}}
- "pihole": - "pihole":
- icon: si-pihole-#96060C - icon: si-pihole-#96060C
href: https://github.com/dhaan7/torrent-stack href: http://shaan-server/admin
- Bookmarks: - Bookmarks:
- github/dhaan7/torrent-stack: - github/dhaan7/torrent-stack:
+4 -10
View File
@@ -38,17 +38,11 @@
url: "{{HOMEPAGE_VAR_MYSPEED_ADDRESS}}" url: "{{HOMEPAGE_VAR_MYSPEED_ADDRESS}}"
fields: [download, upload] fields: [download, upload]
- "non-torrent-stack": - "non-torrent-stack":
- "LibreChat": - "Odysseus":
icon: sh-open-webui-light icon: sh-ollama-light
href: "{{HOMEPAGE_VAR_WEB_PROTOCOL}}://{{HOMEPAGE_VAR_SERVER_NAME}}:3080" href: "{{HOMEPAGE_VAR_WEB_PROTOCOL}}://{{HOMEPAGE_VAR_SERVER_NAME}}:7001"
server: my-docker siteMonitor: "{{HOMEPAGE_VAR_WEB_PROTOCOL}}://{{HOMEPAGE_VAR_SERVER_NAME}}:7001"
container: open-webui
description: Local AI Models description: Local AI Models
- "llama.cpp (thinkcentre)":
icon: sh-llama-cpp-light
href: "http://192.168.50.116:5079"
siteMonitor: http://192.168.50.116:5079
description: 0GB VRAM + 16GB RAM
- "llama.cpp (shaan-pc)": - "llama.cpp (shaan-pc)":
icon: sh-llama-cpp-light icon: sh-llama-cpp-light
href: "http://192.168.50.6:5078" href: "http://192.168.50.6:5078"
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 -U postgres -f init-database.sql
+38
View File
@@ -0,0 +1,38 @@
-- Create a temp table
CREATE TABLE torrent_tmp (
infohash text NOT NULL,
name text NOT NULL,
size_bytes bigint NOT NULL,
created_unix bigint NOT NULL,
seeders integer NOT NULL,
leechers integer NOT NULL,
completed integer NOT NULL,
scraped_date bigint NOT NULL,
published bigint NOT NULL
);
-- Copy from csv
COPY torrent_tmp
FROM
'../torrents.csv' WITH (
FORMAT csv,
HEADER);
-- default sort by seeders
CREATE TABLE torrent AS
SELECT
*
FROM
torrent_tmp
ORDER BY
seeders DESC;
-- Add the identity column
ALTER TABLE torrent
ADD COLUMN id int GENERATED ALWAYS AS IDENTITY,
ADD COLUMN name_search tsvector GENERATED ALWAYS AS (to_tsvector('english', name)) STORED;
CREATE INDEX idx_name ON torrent USING gin (name_search);
DROP TABLE torrent_tmp;
Regular → Executable
+2 -1
View File
@@ -20,6 +20,7 @@ sleep 5
# 4. Launch Odysseus # 4. Launch Odysseus
echo "Spinning up Odysseus Stack..." >> /home/shaan/torrent-stack/startup.log echo "Spinning up Odysseus Stack..." >> /home/shaan/torrent-stack/startup.log
cd /home/shaan/torrent-stack/odysseus || exit cd /home/shaan/torrent-stack/odysseus || exit
git pull && docker compose up -d >> /home/shaan/torrent-stack/startup.log 2>&1 git pull . dev
docker compose up -d >> /home/shaan/torrent-stack/startup.log 2>&1
echo "All services initiated successfully at $(date)" >> /home/shaan/torrent-stack/startup.log echo "All services initiated successfully at $(date)" >> /home/shaan/torrent-stack/startup.log
+1
Submodule torrents-csv-data added at a48af42e1f
+1
View File
@@ -0,0 +1 @@
torrents-csv-data/torrents.csv
1 torrents-csv-data/torrents.csv