Files
XauBot/docker/scripts/docker-status.bat
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

57 lines
1.2 KiB
Batchfile

@echo off
REM Check status of all trading bot services
cd /d "%~dp0..\.."
echo.
echo ========================================
echo Trading Bot Docker Services Status
echo ========================================
echo.
docker-compose ps
echo.
echo ========================================
echo Service Health Checks
echo ========================================
echo.
echo [Database]
docker exec trading_bot_db pg_isready -U trading_bot 2>nul
if %errorlevel%==0 (
echo Status: HEALTHY
) else (
echo Status: NOT RUNNING
)
echo.
echo [API]
curl -s http://localhost:8000/api/health >nul 2>&1
if %errorlevel%==0 (
echo Status: HEALTHY
echo URL: http://localhost:8000
) else (
echo Status: NOT RUNNING or UNHEALTHY
)
echo.
echo [Dashboard]
curl -s http://localhost:3000 >nul 2>&1
if %errorlevel%==0 (
echo Status: HEALTHY
echo URL: http://localhost:3000
) else (
echo Status: NOT RUNNING or UNHEALTHY
)
echo.
echo ========================================
echo Quick Commands
echo ========================================
echo View logs: docker-compose logs -f
echo Restart: docker-compose restart
echo Stop all: docker-compose stop
echo Start all: docker-compose up -d
echo.
pause