#!/bin/bash

# Quick restart script for after Mac reboots
# This assumes Docker Desktop is already running

echo "🔄 Restarting MusicBrainz services..."

# Navigate to musicbrainz-docker
cd ../musicbrainz-docker

# Start services
MUSICBRAINZ_WEB_SERVER_PORT=5001 docker-compose up -d

echo "✅ Services started!"
echo "⏳ Database may take 5-10 minutes to fully initialize"
echo ""
echo "📊 Check status: docker-compose ps"
echo "📋 View logs: docker-compose logs -f db"
echo "🧪 Test when ready: cd ../musicbrainz-cleaner && docker-compose run --rm musicbrainz-cleaner python3 quick_test_20.py" 