edgebox-iot / edgebox-iot/ws

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

Open
#11 0 comments 0 reactions 1 assignee Claimed by @paulotruta View on GitHub
enhancement
Dominant language
Shell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

**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"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.