Files
XauBot/docker/scripts/docker-logs.sh
T
GifariKemal b2dc2dacd7 refactor: reorganize project structure — consolidate Docker files, clean root
- 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>
2026-02-08 14:21:11 +07:00

21 lines
527 B
Bash

#!/bin/bash
# XAUBot AI - Docker Logs Viewer
set -e
cd "$(dirname "$0")/../.."
SERVICE="$1"
LINES="${2:-100}"
if [ -z "$SERVICE" ]; then
echo "📋 Viewing logs for all services..."
echo "💡 Tip: Use './docker-logs.sh SERVICE [LINES]' to view specific service"
echo " Available: trading-api, dashboard, postgres, pgadmin"
echo ""
docker-compose logs -f --tail=$LINES
else
echo "📋 Viewing logs for: $SERVICE (last $LINES lines)"
echo ""
docker-compose logs -f --tail=$LINES $SERVICE
fi