16 lines
No EOL
439 B
PowerShell
16 lines
No EOL
439 B
PowerShell
# PowerShell script (for Windows)
|
|
|
|
# Check if docker-compose is installed
|
|
if (!(Get-Command docker-compose -ErrorAction SilentlyContinue)) {
|
|
Write-Host "docker-compose could not be found. Please install it and try again."
|
|
exit 1
|
|
}
|
|
|
|
# Check if .env file exists
|
|
if (!(Test-Path .env)) {
|
|
Write-Host ".env file not found. Please create it and try again."
|
|
exit 1
|
|
}
|
|
|
|
# Run docker-compose
|
|
docker-compose --env-file .env up --build |