Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'ignore folders' option? #41

Open
YouveGotMeowxy opened this issue Apr 25, 2022 · 0 comments
Open

Add 'ignore folders' option? #41

YouveGotMeowxy opened this issue Apr 25, 2022 · 0 comments

Comments

@YouveGotMeowxy
Copy link

Hi

I'm not sure if this container is abandonware or not, but I just discovered and implemented it, and it seems perfect for me with one small exception.

I have all of my containers set to place all of their logs in a central location on the host (/mnt/e/logs) and then a subdir per container.

In my case, it would be cleaner and more efficient to just mount the top-level dir as the volume mount, and then use an env var to ignore specific dirs (some containers have built in rotate mechanisms that I don't need this container to rotate for them).

Currently, I have to mount something like 20 containers, and also add them each on the single env var line, like this:

LOGS_DIRECTORIES: '/mnt/e/Docker/Logs/authelia /mnt/e/Docker/Logs/mysql /mnt/e/Docker/Logs/something /mnt/e/Docker/Logs/somethingelse' (etc., for another 15 or so more)

Having an env var something like:

LOGS_IGNORE_DIRECTORIES: '/mnt/e/Docker/Logs/ignorethisone /mnt/e/Docker/Logs/ignorethisonetoo'

Would be much nicer, because then I'd just mount the top-level dir, let logrotate recurse through all subdirs, and ignore just like, 3 directories. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant