-
Notifications
You must be signed in to change notification settings - Fork 1
/
healthcaresystem-up.ps1
20 lines (15 loc) · 1.05 KB
/
healthcaresystem-up.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$compose = "./compose/local-deployment/docker-compose.localdep.yaml"
$isaCompose = "./compose/local-deployment/docker-compose.localdep.isa.yaml"
$pswCompose = "./compose/local-deployment/docker-compose.localdep.psw.yaml"
Write-Output "---------------------------------------------------------------------------"
Write-Output "Building solution"
Write-Output "---------------------------------------------------------------------------"
dotnet publish ./HealthcareSystem/HealthcareSystem.sln -c Release
Write-Output "---------------------------------------------------------------------------"
Write-Output "Removing existing services"
Write-Output "---------------------------------------------------------------------------"
docker-compose -f $compose -f $isaCompose -f $pswCompose down -v
Write-Output "---------------------------------------------------------------------------"
Write-Output "Starting services"
Write-Output "---------------------------------------------------------------------------"
docker-compose -f $compose -f $isaCompose -f $pswCompose up --build