mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
22 lines
682 B
PowerShell
22 lines
682 B
PowerShell
param (
|
|
[string]$outputDir = "../.",
|
|
[string]$dockerDir = ""
|
|
)
|
|
|
|
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
if($dockerDir -eq "") {
|
|
$dockerDir="${dir}\..\docker"
|
|
}
|
|
|
|
docker --version
|
|
docker-compose --version
|
|
|
|
$letsEncryptPath = "${outputDir}/letsencrypt"
|
|
if(Test-Path -Path $letsEncryptPath) {
|
|
docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot `
|
|
renew --logs-dir /etc/letsencrypt/logs
|
|
}
|
|
|
|
docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml down
|
|
docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml up -d
|