add pg vector and embed
This commit is contained in:
29
docker/scripts/start-db.bat
Normal file
29
docker/scripts/start-db.bat
Normal file
@@ -0,0 +1,29 @@
|
||||
@echo off
|
||||
REM =====================================================
|
||||
REM Start PostgreSQL Database Only (Windows)
|
||||
REM =====================================================
|
||||
|
||||
echo 🐳 Starting PostgreSQL with pgvector...
|
||||
|
||||
REM Start only the database service
|
||||
docker-compose up -d postgres
|
||||
|
||||
echo ⏳ Waiting for PostgreSQL to be ready...
|
||||
|
||||
REM Wait for PostgreSQL to be healthy
|
||||
:wait_loop
|
||||
docker-compose exec postgres pg_isready -U postgres -d claim_guard >nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
echo ⏳ PostgreSQL is unavailable - sleeping
|
||||
timeout /t 2 /nobreak >nul
|
||||
goto wait_loop
|
||||
)
|
||||
|
||||
echo ✅ PostgreSQL is ready!
|
||||
echo 📊 Database URL: postgresql://postgres:postgres123@localhost:5432/claim_guard
|
||||
|
||||
REM Show logs
|
||||
echo 📋 Database logs:
|
||||
docker-compose logs postgres
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user