From 1f84e78690e6397a45ac095bb7a4ef91e282cd69 Mon Sep 17 00:00:00 2001 From: shaan Date: Sun, 21 Jun 2026 01:51:24 -0700 Subject: [PATCH] same as previous --- conf/Caddyfile | 1 + startup.sh | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 conf/Caddyfile create mode 100644 startup.sh diff --git a/conf/Caddyfile b/conf/Caddyfile new file mode 100644 index 0000000..7acd056 --- /dev/null +++ b/conf/Caddyfile @@ -0,0 +1 @@ +respond "Hello World" diff --git a/startup.sh b/startup.sh new file mode 100644 index 0000000..0a84270 --- /dev/null +++ b/startup.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# --- SYSTEM STARTUP LOGGING --- +echo "==========================================" >> /home/shaan/startup.log +echo "Starting local AI and Media stacks: $(date)" >> /home/shaan/startup.log +echo "==========================================" >> /home/shaan/startup.log + +# 1. Wait 15 seconds to ensure Docker daemon and network layers are completely awake +sleep 15 + +# 2. Launch your Primary Stack (Homarr, Radarr, Sonarr, qBit, Cloudflared) +echo "Spinning up Primary Media Stack..." >> /home/shaan/torrent-stack/startup.log +cd /home/shaan/torrent-stack || exit +docker compose up -d gluetun & sleep 90 >> /home/shaan/torrent-stack/startup.log 2>&1 +docker compose up -d + +# 3. Small buffer to allow the primary network to mesh +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 + +echo "All services initiated successfully at $(date)" >> /home/shaan/torrent-stack/startup.log