You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 7 години
преди 7 години
1234567891011
  1. #!/usr/bin/env bash
  2. docker-compose pull
  3. docker-compose down
  4. echo "Curl docker-compose.prod.yml"
  5. curl -s -o docker-compose.yml https://raw.githubusercontent.com/lesspass/lesspass/master/docker-compose.prod.yml
  6. echo "Try to renew LestEncrypt certificate"
  7. docker run -it --rm -p 443:443 -p 80:80 -v $PWD/letsencrypt:/etc/letsencrypt/ certbot/certbot renew
  8. docker-compose up -d
  9. echo "Delete old docker images"
  10. docker images --quiet --filter=dangling=true | xargs --no-run-if-empty docker rmi