23 lines
581 B
PowerShell
23 lines
581 B
PowerShell
Write-Host "Starting Local Database Setup..."
|
|
docker-compose up -d
|
|
|
|
Write-Host "Waiting for database to be ready..."
|
|
Start-Sleep -Seconds 10
|
|
|
|
$containerName = "pralog-local-db"
|
|
$dbUser = "itguys"
|
|
$dbName = "global"
|
|
|
|
# Check if container is running
|
|
$running = docker ps -q -f name=$containerName
|
|
if (-not $running) {
|
|
Write-Error "Container failed to start!"
|
|
exit 1
|
|
}
|
|
|
|
Write-Host "Container is running."
|
|
Write-Host "Checking logs for restore status..."
|
|
docker logs $containerName | Select-Object -Last 20
|
|
|
|
Write-Host "Setup complete. Credentials are in local_credentials.md"
|