Like most people who downvoted the sparse Docker docs page here and here, I'm confused by what docker-compose logs
does.
When I run cd /apps/laradock/ && docker-compose logs -f nginx
, I see a very long output from many days ago til now.
What file or files is that pulling from?
The only nginx log file I could find was /apps/laradock/logs/nginx/error.log
, and it doesn't have much in it (so isn't the same).
And is there a way to "log rotate" or otherwise ensure that I don't spend more than a certain amount of disk on logging?
docker-compose.yml
, and it saysversion: '2.1'
and doesn't have the word "logging" anywhere in the file. And I don't think the what I see when I rundocker-compose logs -f nginx
is JSON format. Any idea where I should look to see how my current logging is configured? Thanks. – Diphthong