gis-ops / docker-valhalla

This is our flexible Docker repository for the Valhalla routing engine
MIT License
240 stars 70 forks source link

New feature: write logfile to a custom mounted volume #11

Closed gschimon closed 3 years ago

gschimon commented 3 years ago

Would be nice to have the possibility to write a logfile to a volume that is accessible from the host system. Can be in "custom_files" or maybe even better in an extra volume mount (e.g. "log_files")

Could be implemented with rsyslog inside the container.

nilsnolde commented 3 years ago

I think you better deal with this on the host, not inside the container, e.g.: https://docs.docker.com/config/containers/logging/configure/

nilsnolde commented 3 years ago

someone also came up with a rsyslog solution: https://www.simulmedia.com/blog/2016/02/19/centralized-docker-logging-with-rsyslog/

gschimon commented 3 years ago

You are right. That is probably the better solution. Thanks!