fabriquedoc/run_docker_compose.ps1
François Pelletier 4a6bfc951f Gros refactoring
2024-12-31 17:00:07 -05:00

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