Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add log rotation properties to edgebox-compose.yml (and framework recommendations) #11

Open
paulotruta opened this issue Apr 20, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@paulotruta
Copy link
Member

This would also be recommended to add to EdgeApps, as well as the API repository.

Make Docker automatically rotate the logs for you. Lpg options can be passed to individual containers to override these defaults, allowing you to save more or fewer logs on individual containers. From docker run this looks like:

docker run --log-driver json-file --log-opt max-size=10m --log-opt max-file=3 ...
or in a compose file:

version: '3.7'
services:
  app:
    image: ...
    logging:
      options:
        max-size: "10m"
        max-file: "3"
@paulotruta paulotruta added the enhancement New feature or request label Apr 20, 2021
@paulotruta paulotruta self-assigned this Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant