Add logrotate (#25)
All checks were successful
Build Image / Validate Image (push) Successful in 2m21s
Build Image / Publish Image (push) Successful in 4m55s
Build Image / Notify (push) Successful in 3s
Build Tagged Release Image / Build Image (push) Successful in 5m43s
Build Tagged Release Image / Create Release (push) Successful in 34s
Build Tagged Release Image / Notify (push) Successful in 3s

Adds logrotate, running every day at 00:00.

Rotates `letsencrypt.log`, keeping 10 versions.
Rotates `renew.log` at 100 megabytes

Closes #10

Reviewed-on: #25
Co-authored-by: MrMeeb <charles.macdonald@me.com>
Co-committed-by: MrMeeb <charles.macdonald@me.com>
This commit is contained in:
2024-06-02 21:29:42 +00:00
committed by MrMeeb
parent 259cdf080e
commit 9a2a27cb1a
3 changed files with 18 additions and 2 deletions

View File

@ -40,7 +40,7 @@ ENV CLOUDFLARE_TOKEN=
ENV CERT_COUNT=1
#Get required packages
RUN apk update && apk add curl bash python3 py3-virtualenv procps tzdata nano shadow xz busybox-suid openssl
RUN apk update && apk add curl bash python3 py3-virtualenv procps tzdata nano shadow xz busybox-suid openssl logrotate
#Make folders
RUN mkdir /config && \