diff --git a/hosts/docker/configuration.nix b/hosts/docker/configuration.nix index e80013a..a368e40 100644 --- a/hosts/docker/configuration.nix +++ b/hosts/docker/configuration.nix @@ -39,6 +39,24 @@ in nfs-utils ]; + services.logrotate = { + enable = true; + + settings = { + "/mnt/docker-persistent-data/docker/core/traefik/data/logs/*.log" = { + daily = true; + rotate = 14; + compress = true; + delaycompress = true; + missingok = true; + notifempty = true; + copytruncate = true; + }; + + }; + }; + + boot.supportedFilesystems = [ "nfs" ]; services.rpcbind.enable = true;