docker-compose/examples/traefik/logrotate_example.txt
hhftechnologies dbb998c18a update
2024-09-28 09:59:12 +05:30

14 lines
470 B
Text

# place this example code at /etc/logrotate.d/traefik on your docker host server
# please adjust the custom file path below, where your traefik logs are stored
# please adjust the below traefik container name to send the USR1 signal for log rotation
compress
/mnt/docker-volumes/traefik/logs/*.log {
size 20M
daily
rotate 14
missingok
notifempty postrotate
docker kill --signal="USR1" traefik # adjust this line to your traefik container name
endscript
}