concourse / concourse-docker

Offical concourse/concourse Docker image.
Apache License 2.0
241 stars 153 forks source link

add logging restrictions to default docker-compose #47

Closed wolfv closed 5 years ago

wolfv commented 5 years ago

In order to prevent growing very large docker images, I've added these logging bound statements which I find very useful.

Otherwise, running the concourse docker-compose for longer time frames quickly filled up my hard drive.

I am not sure if you want to have this configuration in the default docker-compose though, so I am happy to close.

vito commented 5 years ago

Thanks!

Interesting, do other projects set this? This feels like a challenge that any long-running service would run into. :thinking:

wolfv commented 5 years ago

I can find some other projects using it: https://github.com/search?l=YAML&q=driver%3A+%22json-file%22&type=Code

I guess the alternative would be to add a small section on changing the global docker config?

https://docs.docker.com/config/containers/logging/configure/

wolfv commented 5 years ago

btw i found this info here: https://medium.com/@Quigley_Ja/rotating-docker-logs-keeping-your-overlay-folder-small-40cfa2155412