b2dc2dacd7
- Delete temp files: _tmp_analysis.py, nul, dashboard_screenshot.png - Move ea/ to archive/ea/ (deprecated) - Move 12 Docker helper scripts (.bat/.sh) to docker/scripts/ - Move 5 Docker docs to docker/docs/ - Move .env.docker.example, requirements-docker.txt to docker/ - Update all scripts with cd to project root for correct path resolution - Update all doc references to new paths - Update .gitignore with bot.pid, bot_output.log, *.png patterns - Update CLAUDE.md, README.md directory trees Root reduced from ~40 files to 12 essential files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
887 B
Bash
33 lines
887 B
Bash
#!/bin/bash
|
|
# XAUBot AI - Docker Stop Script
|
|
|
|
set -e
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
echo "🛑 Stopping XAUBot AI Docker Services..."
|
|
echo ""
|
|
|
|
# Parse arguments
|
|
if [ "$1" == "--remove" ] || [ "$1" == "-r" ]; then
|
|
echo "⚠️ Stopping and removing containers..."
|
|
docker-compose down
|
|
echo "✅ Containers stopped and removed"
|
|
elif [ "$1" == "--clean" ] || [ "$1" == "-c" ]; then
|
|
echo "⚠️ WARNING: This will remove all data including database!"
|
|
read -p "Are you sure? (yes/no): " confirm
|
|
if [ "$confirm" == "yes" ]; then
|
|
docker-compose down -v
|
|
echo "✅ Containers, networks, and volumes removed"
|
|
else
|
|
echo "❌ Cancelled"
|
|
fi
|
|
else
|
|
echo "🔄 Stopping containers (data will be preserved)..."
|
|
docker-compose stop
|
|
echo "✅ Containers stopped"
|
|
fi
|
|
|
|
echo ""
|
|
echo "📋 To restart: ./docker/scripts/docker-start.sh"
|
|
echo ""
|