Closed joncinla closed 2 weeks ago
I'm running more than one instance of thinkst/opencanary, and I love it, but the logs have completely filled my HD, and it still works, but I don't have enough space to maintain the server, --how can I manage the logs and trim them back to a reasonable size?
I found the solution, -it was in my notes, you can have the docker-compose with parameters that limits the log size.
services: latest: # docker-compose up --build -d latest <<: *common container_name: opencanary_latest image: thinkst/opencanary logging: options: max-size: "5m" max-file: "3" build: context: . dockerfile: Dockerfile.latest
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Version [e.g. 22]
Smartphone (please complete the following information):
Additional context Add any other context about the problem here. Suggested additional information