Add local/umbrel mode, rename containers to telegtrum, revert to named volumes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
goyban
2026-04-26 18:02:17 +00:00
parent e6f86843df
commit 0c5c1589b8
5 changed files with 82 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -e
mkdir -p /root/.electrum/wallets
CONFIG="/root/.electrum/config"
if [ ! -f "$CONFIG" ]; then
echo "Writing default config..."
cat > "$CONFIG" <<'EOF'
{
"auto_connect": false,
"enable_proxy": false,
"oneserver": true,
"server": "umbrel.local:50001:t"
}
EOF
fi
echo "Starting Electrum daemon..."
rm -f /root/.electrum/daemon
electrum daemon -d
echo "Electrum daemon started. Launching bot..."
exec /opt/electrum/bin/python3 /app/bot.py