mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
renew lets encrypt cert on run
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
param (
|
||||
[string] $dockerDir = ""
|
||||
[string]$outputDir = "../.",
|
||||
[string]$dockerDir = ""
|
||||
)
|
||||
|
||||
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
@ -10,5 +11,11 @@ if($dockerDir -eq "") {
|
||||
docker --version
|
||||
docker-compose --version
|
||||
|
||||
$letsEncryptLivePath = "${outputDir}/letsencrypt/live"
|
||||
if(Test-Path -Path $letsEncryptLivePath) {
|
||||
docker run -it --rm --name certbot -p 443:443 -p 80:80 -v $outputDir/letsencrypt:/etc/letsencrypt/ certbot/certbot `
|
||||
renew
|
||||
}
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user