Merge pull request 'Expose max log retention in traefik.yml' (#51) from sixsmith/traefik:master into master

Reviewed-on: #51
Reviewed-by: marlon <marlon@riseup.net>
This commit is contained in:
marlon 2025-02-19 22:15:04 +00:00
commit 14d5d79520
3 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ LETS_ENCRYPT_EMAIL=certs@example.com
# DASHBOARD_ENABLED=true
# WARN, INFO etc.
LOG_LEVEL=WARN
LOG_MAX_AGE=1
# This is here so later lines can extend it; you likely don't wanna edit
COMPOSE_FILE="compose.yml"

View File

@ -27,6 +27,7 @@ services:
environment:
- DASHBOARD_ENABLED
- LOG_LEVEL
- LOG_MAX_AGE
healthcheck:
test: ["CMD", "traefik", "healthcheck"]
interval: 30s

View File

@ -1,6 +1,8 @@
---
log:
level: {{ env "LOG_LEVEL" }}
maxAge: {{ env "LOG_MAX_AGE" }}
providers:
docker: