diff options
author | Bill <bill@billserver.senders.io> | 2023-09-10 19:14:15 -0400 |
---|---|---|
committer | Bill <bill@billserver.senders.io> | 2023-09-10 19:14:15 -0400 |
commit | 884a8da449838a03240ab7cab23482080068af1d (patch) | |
tree | 7f43194b10abcd35f2a449af0c15612e055f751e | |
parent | 853453c2d494bdfdec746b43ad8e3ac0f50e4b07 (diff) |
-rwxr-xr-x | cron-renew-certs.sh | 5 | ||||
-rw-r--r-- | docker-compose.yml | 37 |
2 files changed, 39 insertions, 3 deletions
diff --git a/cron-renew-certs.sh b/cron-renew-certs.sh index cb63c4b..32768bd 100755 --- a/cron-renew-certs.sh +++ b/cron-renew-certs.sh @@ -3,5 +3,8 @@ set -ex echo "Updating certs - $(date --iso=s)" cd /home/bill/apps/certbot docker-compose -f /home/bill/apps/certbot/docker-compose.yml run certbot +docker-compose -f /home/bill/apps/certbot/docker-compose.yml run porkbun-bot-twime +docker-compose -f /home/bill/apps/certbot/docker-compose.yml run porkbun-bot-bill - +cd /home/bill/apps/public_nginx/ +docker-compose -f docker-compose.yml up -d --force-recreate diff --git a/docker-compose.yml b/docker-compose.yml index 3142b8e..74ea2a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: environment: - AWS_CONFIG_FILE=/secrets/aws_creds volumes: - - "${PWD}/secrets:/secrets/aws_creds" + - "${PWD}/secrets/aws_creds:/secrets/aws_creds" - "/etc/letsencrypt/certs:/etc/letsencrypt" command: | certonly @@ -15,5 +15,38 @@ services: --dns-route53 --dns-route53-propagation-seconds 30 --cert-name senders.io - -d senders.io,monitor.senders.io,files.senders.io + -d senders.io,www.senders.io,monitor.senders.io,files.senders.io,git.senders.io,gemini.senders.io,matrix.senders.io + porkbun-bot-twime: + image: infinityofspace/certbot_dns_porkbun:latest + volumes: + - "${PWD}/secrets/porkbun.ini:/secrets/porkbun.ini" + - "/etc/letsencrypt/certs:/etc/letsencrypt" + command: | + certonly + --non-interactive + --agree-tos + --email admin@senders.io + --preferred-challenges dns + --authenticator dns-porkbun + --dns-porkbun-credentials /secrets/porkbun.ini + --dns-porkbun-propagation-seconds 60 + --cert-name thewomaninmyeye.org + -d thewomaninmyeye.org + + porkbun-bot-bill: + image: infinityofspace/certbot_dns_porkbun:latest + volumes: + - "${PWD}/secrets/porkbun.ini:/secrets/porkbun.ini" + - "/etc/letsencrypt/certs:/etc/letsencrypt" + command: | + certonly + --non-interactive + --agree-tos + --email admin@senders.io + --preferred-challenges dns + --authenticator dns-porkbun + --dns-porkbun-credentials /secrets/porkbun.ini + --dns-porkbun-propagation-seconds 60 + --cert-name billserver.org + -d billserver.org |