meta data for this page
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:docker:log [2023/05/17 10:30] – created niziak | linux:docker:log [2025/03/17 21:03] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Logging ====== | ====== Logging ====== | ||
+ | Prevent disc space flooding with container logs: | ||
+ | |||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | <file txt / | ||
+ | / | ||
+ | rotate 4 | ||
+ | weekly | ||
+ | compress | ||
+ | size=100M | ||
+ | missingok | ||
+ | delaycompress | ||
+ | copytruncate | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== nginx logs ===== | ||
+ | |||
+ | <file txt / | ||
+ | / | ||
+ | weekly | ||
+ | missingok | ||
+ | rotate 4 | ||
+ | dateext | ||
+ | compress | ||
+ | delaycompress | ||
+ | notifempty | ||
+ | sharedscripts | ||
+ | postrotate | ||
+ | cd / | ||
+ | && / | ||
+ | endscript | ||
+ | } | ||
+ | |||
+ | |||
+ | </ | ||