summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcron-renew-certs.sh5
-rw-r--r--docker-compose.yml37
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