fix: bug fixes
This commit is contained in:
+26
@@ -469,6 +469,32 @@ services:
|
||||
restart: always
|
||||
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:
|
||||
# build:
|
||||
# context: .
|
||||
|
||||
+15
-9
@@ -5,31 +5,37 @@
|
||||
- "Icons":
|
||||
- "Plex":
|
||||
- icon: si-plex-#EBAF00
|
||||
href: https://github.com/dhaan7/torrent-stack
|
||||
href: {{HOMEPAGE_VAR_PLEX_HOST}}
|
||||
- "LibreChat":
|
||||
- icon: si-ollama-#FFFFFF
|
||||
href: https://0.0.0.0
|
||||
href: http://shaan-server:7001
|
||||
- "Sonarr":
|
||||
- icon: si-sonarr-#2596BE
|
||||
href: https://github.com/dhaan7/torrent-stack
|
||||
href: {{HOMEPAGE_VAR_SONARR_HOST}}
|
||||
- "Radarr":
|
||||
- icon: si-radarr-#FFCB3D
|
||||
href: https://github.com/dhaan7/torrent-stack
|
||||
href: {{HOMEPAGE_VAR_RADARR_HOST}}
|
||||
- "Lidarr":
|
||||
- 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":
|
||||
- icon: si-qbittorrent-#2F67BA
|
||||
href: https://github.com/dhaan7/torrent-stack
|
||||
href: http://shaan-server:2161
|
||||
- "Seerr":
|
||||
- icon: sh-seerr-light
|
||||
href: https://github.com/dhaan7/torrent-stack
|
||||
href: {{HOMEPAGE_VAR_SEERR_HOST}}
|
||||
- "Prowlarr":
|
||||
- icon: sh-prowlarr-light
|
||||
href: https://github.com/dhaan7/torrent-stack
|
||||
href: {{HOMEPAGE_VAR_PROWLARR_HOST}}
|
||||
- "pihole":
|
||||
- icon: si-pihole-#96060C
|
||||
href: https://github.com/dhaan7/torrent-stack
|
||||
href: http://shaan-server/admin
|
||||
|
||||
- Bookmarks:
|
||||
- github/dhaan7/torrent-stack:
|
||||
|
||||
+4
-10
@@ -38,17 +38,11 @@
|
||||
url: "{{HOMEPAGE_VAR_MYSPEED_ADDRESS}}"
|
||||
fields: [download, upload]
|
||||
- "non-torrent-stack":
|
||||
- "LibreChat":
|
||||
icon: sh-open-webui-light
|
||||
href: "{{HOMEPAGE_VAR_WEB_PROTOCOL}}://{{HOMEPAGE_VAR_SERVER_NAME}}:3080"
|
||||
server: my-docker
|
||||
container: open-webui
|
||||
- "Odysseus":
|
||||
icon: sh-ollama-light
|
||||
href: "{{HOMEPAGE_VAR_WEB_PROTOCOL}}://{{HOMEPAGE_VAR_SERVER_NAME}}:7001"
|
||||
siteMonitor: "{{HOMEPAGE_VAR_WEB_PROTOCOL}}://{{HOMEPAGE_VAR_SERVER_NAME}}:7001"
|
||||
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)":
|
||||
icon: sh-llama-cpp-light
|
||||
href: "http://192.168.50.6:5078"
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
psql -v ON_ERROR_STOP=1 -U postgres -f init-database.sql
|
||||
@@ -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
@@ -20,6 +20,7 @@ sleep 5
|
||||
# 4. Launch Odysseus
|
||||
echo "Spinning up Odysseus Stack..." >> /home/shaan/torrent-stack/startup.log
|
||||
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
|
||||
|
||||
Submodule
+1
Submodule torrents-csv-data added at a48af42e1f
Symlink
+1
@@ -0,0 +1 @@
|
||||
torrents-csv-data/torrents.csv
|
||||
|
Reference in New Issue
Block a user