Rotating logs with logrotate - recommended approach

Hi everyone,
I'm saving access and debug logs to files and bind them to my host. I was wondering how you guys rotate these logs:

  • Do you create a Dockerfile and add logrotate in the traefik container and add all configs there?
    I assume logrotate is not installed in the default traefik container, I couldn't find one...

  • Or do you rotate the logs on your host? Or in another way?

It would be really helpful to me if you could explain your decision and maybe your code sample :raised_hands:(especially if you use the container solution).

Thanks in advance :slightly_smiling_face: