26 lines
691 B
Bash
26 lines
691 B
Bash
#!/bin/bash
|
|
|
|
# =====================================================
|
|
# Start PostgreSQL Database Only
|
|
# =====================================================
|
|
|
|
echo "🐳 Starting PostgreSQL with pgvector..."
|
|
|
|
# Start only the database service
|
|
docker-compose up -d postgres
|
|
|
|
echo "⏳ Waiting for PostgreSQL to be ready..."
|
|
|
|
# Wait for PostgreSQL to be healthy
|
|
until docker-compose exec postgres pg_isready -U postgres -d claim_guard; do
|
|
echo "⏳ PostgreSQL is unavailable - sleeping"
|
|
sleep 2
|
|
done
|
|
|
|
echo "✅ PostgreSQL is ready!"
|
|
echo "📊 Database URL: postgresql://postgres:postgres123@localhost:5432/claim_guard"
|
|
|
|
# Show logs
|
|
echo "📋 Database logs:"
|
|
docker-compose logs postgres
|