Spaces:
Sleeping
Sleeping
File size: 1,677 Bytes
67f25fb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
@echo off
echo ========================================
echo Multi-Lingual Catalog Translator
echo Docker Deployment
echo ========================================
echo.
echo π§ Checking Docker installation...
docker --version >nul 2>nul
if %errorlevel% neq 0 (
echo β Docker not found! Please install Docker Desktop
echo π₯ Download from: https://www.docker.com/products/docker-desktop
pause
exit /b 1
)
echo β
Docker found
echo.
docker-compose --version >nul 2>nul
if %errorlevel% neq 0 (
echo β Docker Compose not found! Please install Docker Compose
pause
exit /b 1
)
echo β
Docker Compose found
echo.
echo ποΈ Building and starting containers...
echo This may take several minutes on first run...
echo.
docker-compose up --build -d
if %errorlevel% neq 0 (
echo β Failed to start containers
echo.
echo π Checking logs:
docker-compose logs
pause
exit /b 1
)
echo.
echo β
Containers started successfully!
echo.
echo β³ Waiting for services to be ready...
timeout /t 30 /nobreak >nul
echo.
echo π Checking service health...
docker-compose ps
echo.
echo π± Access your application:
echo π Frontend UI: http://localhost:8501
echo π Backend API: http://localhost:8001
echo π API Docs: http://localhost:8001/docs
echo.
echo π‘ Useful commands:
echo View logs: docker-compose logs -f
echo Stop services: docker-compose down
echo Restart: docker-compose restart
echo.
echo π Docker deployment complete!
echo Opening frontend in browser...
start http://localhost:8501
echo.
echo Press any key to view logs...
pause >nul
docker-compose logs -f
|