diff --git a/.env.sample b/.env.sample
index 558e4d2..d62cfa9 100644
--- a/.env.sample
+++ b/.env.sample
@@ -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"
diff --git a/compose.yml b/compose.yml
index b8c6331..61a1b64 100644
--- a/compose.yml
+++ b/compose.yml
@@ -27,6 +27,7 @@ services:
     environment:
       - DASHBOARD_ENABLED
       - LOG_LEVEL
+      - LOG_MAX_AGE
     healthcheck:
       test: ["CMD", "traefik", "healthcheck"]
       interval: 30s
diff --git a/traefik.yml.tmpl b/traefik.yml.tmpl
index f2af6ad..5767282 100644
--- a/traefik.yml.tmpl
+++ b/traefik.yml.tmpl
@@ -1,6 +1,8 @@
 ---
 log:
   level: {{ env "LOG_LEVEL" }}
+  maxAge: {{ env "LOG_MAX_AGE" }}
+
 
 providers:
   docker: