Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Expose log files to the docker host #85
Being able to access log files directly on the docker host would make for easily searchable logs which could be used for fail2ban, splunk/ELK analysis etc.
Just need to make sure logs are rotated for each component.
I agree about Fail2ban and am still thinking about the proper solution on the matter.
However, Docker is very good at handling its logs and I believe most Freeposte containers output their logs to Docker. Instead of creating another structure for storing logs, you can use standard Docker tools.
For instance, have a look at Docker log drivers like Gelf to forward logs to Splunk or ELK, or access and parse logs using
There are already dedicated tools for extracting Docker logs, including a Logstash adapter to facilitate the ELK analysis. This part of the question is definitely out of scope for Mailu.
I do think a few of the more generic logfiles, specifically those related to mail flow, could be in shared volumes instead of only in Docker logs. I know I for one still prefer