-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-start.ps1
More file actions
42 lines (34 loc) · 1.63 KB
/
docker-start.ps1
File metadata and controls
42 lines (34 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Docker Quick Start Script for FermiURL
Write-Host "=====================================" -ForegroundColor Cyan
Write-Host " FermiURL - Docker Launch" -ForegroundColor Cyan
Write-Host "=====================================" -ForegroundColor Cyan
Write-Host ""
# Check if Docker Desktop is running
Write-Host "Checking if Docker Desktop is running..." -ForegroundColor Yellow
$dockerInfo = docker info 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "X Docker Desktop is not running!" -ForegroundColor Red
Write-Host ""
Write-Host "Please start Docker Desktop:" -ForegroundColor Yellow
Write-Host " 1. Open Docker Desktop from Start Menu" -ForegroundColor Cyan
Write-Host " 2. Wait for it to finish starting (whale icon in system tray)" -ForegroundColor Cyan
Write-Host " 3. Run this script again" -ForegroundColor Cyan
Write-Host ""
exit 1
}
Write-Host "Docker Desktop is running!" -ForegroundColor Green
Write-Host ""
# Navigate to project root
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location $scriptPath
# Build and start containers
Write-Host "Building and starting containers..." -ForegroundColor Yellow
Write-Host "This may take a few minutes on first run..." -ForegroundColor Cyan
Write-Host ""
docker-compose up --build
Write-Host ""
Write-Host "=====================================" -ForegroundColor Cyan
Write-Host "To stop: Press Ctrl+C" -ForegroundColor Yellow
Write-Host "To run in background: docker-compose up -d" -ForegroundColor Yellow
Write-Host "To stop background: docker-compose down" -ForegroundColor Yellow
Write-Host "=====================================" -ForegroundColor Cyan