mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2026-02-15 01:04:24 +01:00
cleanup repo
This commit is contained in:
14
examples/traefik/logrotate_example.txt
Normal file
14
examples/traefik/logrotate_example.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user