#!/bin/bash echo "🚀 Starting Habbo Retro Docker Services..." echo "" # Check if .env exists if [ ! -f .env ]; then echo "⚠️ .env file not found. Copying from .env.docker..." cp .env.docker .env echo "✅ Created .env file" echo "" echo "⚠️ IMPORTANT: Edit .env and set:" echo " - MYSQL_ROOT_PASSWORD" echo " - MYSQL_PASSWORD" echo " - APP_KEY (run: docker-compose exec cms php artisan key:generate --show)" echo "" read -p "Press Enter to continue after editing .env..." fi # Build images echo "📦 Building Docker images..." docker-compose build # Start services echo "" echo "🎮 Starting services..." docker-compose up -d # Wait for services to be healthy echo "" echo "⏳ Waiting for services to be healthy..." sleep 10 # Show status echo "" echo "📊 Service Status:" docker-compose ps echo "" echo "✅ Habbo Retro is starting!" echo "" echo "🌐 Service URLs:" echo " Cool UI: http://localhost:5174" echo " Standard Nitro: http://localhost:5173" echo " Asset Server: http://localhost:8080" echo " CMS: http://localhost" echo " MySQL: localhost:3306" echo "" echo "📋 Useful commands:" echo " View logs: docker-compose logs -f" echo " Stop: docker-compose down" echo " Restart: docker-compose restart [service]" echo ""