docker-traefik-logrotate icon indicating copy to clipboard operation
docker-traefik-logrotate copied to clipboard

Feature Request: Accept mutiple directories for rotating logs

Open fgeck opened this issue 10 months ago • 0 comments

Hi,

as many people are using traefik + crowdsec or fail2ban I think it would be beneficial to accept multiple directories to do the log rotation.

E.g.:

    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:rw # required to send USR1 signal to Traefik after log rotation
      - ./log:/var/log/traefik:rw # folder containing access.log file
      - ../crowdsec/log:/var/log/crowdsec:rw
    environment:
      TZ: "Europe/Berlin"
      LOGROTATE_LOGS: "/var/log/traefik/*.log, /var/loge/crowdsec/*.log"

fgeck avatar Apr 07 '24 12:04 fgeck