33 lines
824 B
Batchfile
33 lines
824 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
title ETest Docker Redeploy
|
|
color 0A
|
|
|
|
echo ========================================
|
|
echo ETest Docker Redeploy with Password
|
|
echo ========================================
|
|
echo.
|
|
|
|
cd /d C:\PPRO\ETest-Vue-FastAPI
|
|
|
|
echo [*] Stopping existing containers...
|
|
docker-compose -f docker-compose-full.yml down
|
|
|
|
echo [*] Removing old MySQL data volume...
|
|
docker volume rm etest-vue-fastapi_mysql_data 2>nul
|
|
|
|
echo [*] Starting fresh deployment...
|
|
docker-compose -f docker-compose-full.yml up -d mysql redis
|
|
|
|
echo [*] Waiting for MySQL to initialize (30 seconds)...
|
|
timeout /t 30 /nobreak >nul
|
|
|
|
echo [*] Checking MySQL status...
|
|
docker logs etest-mysql --tail 20
|
|
|
|
echo.
|
|
echo [*] If MySQL is running, start backend and frontend:
|
|
echo docker-compose -f docker-compose-full.yml up -d backend frontend
|
|
echo.
|
|
pause
|