-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-mysql.ps1
More file actions
23 lines (16 loc) · 803 Bytes
/
Copy pathstart-mysql.ps1
File metadata and controls
23 lines (16 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# PowerShell script to start OrderNet with MySQL
Write-Host "Starting OrderNet with MySQL Database..." -ForegroundColor Green
Write-Host ""
Write-Host "1. Starting MySQL and other services with Docker Compose..." -ForegroundColor Yellow
docker-compose up -d mysql redis rabbitmq elasticsearch phpmyadmin mailhog
Write-Host ""
Write-Host "2. Waiting for MySQL to be ready..." -ForegroundColor Yellow
Start-Sleep -Seconds 30
Write-Host ""
Write-Host "3. Starting Spring Boot application..." -ForegroundColor Yellow
Write-Host "MySQL Database: localhost:3306/ordernet_db" -ForegroundColor Cyan
Write-Host "phpMyAdmin: http://localhost:8081" -ForegroundColor Cyan
Write-Host "MailHog: http://localhost:8025" -ForegroundColor Cyan
Write-Host ""
mvn spring-boot:run
Read-Host "Press Enter to continue"