Files
laca-website/scripts/docker-dev.sh
PhongPham 51f2505839 🚀 Complete Laca City Website with VPS Deployment
- Added complete Next.js frontend with responsive design
- Added NestJS backend with PostgreSQL and Redis
- Added comprehensive VPS deployment script (vps-deploy.sh)
- Added deployment guide and documentation
- Added all assets and static files
- Configured SSL, Nginx, PM2, and monitoring
- Ready for production deployment on any VPS
2025-08-12 07:06:15 +07:00

54 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
# 🐳 Smart Parking Finder - Docker Development Environment
echo "🚗 Starting Smart Parking Finder Development Environment with Docker..."
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Navigate to project root (go back one level since we're in scripts folder)
cd "$(dirname "$0")/.."
# Check required tools
echo "Checking required tools..."
if ! command_exists docker; then
echo "❌ Docker is not installed. Please install Docker first."
echo "📥 Download from: https://www.docker.com/products/docker-desktop"
exit 1
fi
# Check if Docker is running
if ! docker info >/dev/null 2>&1; then
echo "❌ Docker is not running. Please start Docker and try again."
exit 1
fi
echo "✅ All requirements met!"
echo ""
# Start services with docker-compose
echo "🐳 Starting services with Docker Compose..."
docker-compose up -d
# Wait for services to be ready
echo "⏳ Waiting for services to be ready..."
sleep 10
echo ""
echo "🎉 Smart Parking Finder is now running!"
echo "📋 Service URLs:"
echo " 🎨 Frontend: http://localhost:3000"
echo " 🔧 Backend API: http://localhost:3001"
echo " 📊 API Docs: http://localhost:3001/api/docs"
echo " 🗄️ Database: localhost:5432"
echo " 🔴 Redis: localhost:6379"
echo " 🗺️ Valhalla: localhost:8002"
echo ""
echo "🔧 Management commands:"
echo " 📋 View logs: docker-compose logs -f"
echo " 🛑 Stop all: docker-compose down"
echo " 🗑️ Clean up: docker-compose down -v"
echo ""