mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
prune images
This commit is contained in:
parent
712e3f3477
commit
7524054c12
@ -11,11 +11,13 @@ if($dockerDir -eq "") {
|
||||
docker --version
|
||||
docker-compose --version
|
||||
|
||||
docker-compose -f ${dockerDir}\docker-compose.yml -f ${dockerDir}\docker-compose.macwin.yml down
|
||||
|
||||
$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
|
||||
docker image prune -f
|
||||
|
@ -24,6 +24,8 @@ fi
|
||||
docker --version
|
||||
docker-compose --version
|
||||
|
||||
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down
|
||||
|
||||
LETS_ENCRYPT_PATH = "${outputDir}/letsencrypt"
|
||||
if [ -d "LETS_ENCRYPT_PATH" ]
|
||||
then
|
||||
@ -31,5 +33,5 @@ then
|
||||
renew --logs-dir /etc/letsencrypt/logs
|
||||
fi
|
||||
|
||||
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml down
|
||||
docker-compose -f $DOCKER_DIR/docker-compose.yml -f $DOCKER_DIR/docker-compose.$OS.yml up -d
|
||||
docker image prune -f
|
||||
|
Loading…
Reference in New Issue
Block a user