Carpeta inicial añadida

This commit is contained in:
2026-03-16 12:08:04 -04:00
parent 157c93736c
commit f829e6a42f
35 changed files with 9396 additions and 197 deletions

12
cron/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM alpine:3.16
RUN apk update && \
apk add --no-cache docker-cli docker-cli-compose
COPY renew_certs.sh /etc/periodic/daily/renew_certs
RUN chmod +x /etc/periodic/daily/renew_certs
WORKDIR /workdir
CMD ["crond", "-f", "-l", "0"]

7
cron/renew_certs.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
cd /workdir
echo "Renewing Let's Encrypt Certificates... (`date`)"
docker compose run --rm --no-TTY --entrypoint certbot certbot renew --no-random-sleep-on-renew
echo "Reloading Nginx configuration"
docker compose exec --no-TTY nginx nginx -s reload