summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2022-12-31 19:08:18 +0000
committerArthur She <arthur.she@linaro.org>2023-07-10 03:58:07 +0000
commitcbfa2fdf34c436a7c9ec55275718230c2a3698f5 (patch)
tree66107266a37530e05a6f9465b35df16d37629b29
parent7b987ce2c4935f34e48795a6ca2250d75179c4f3 (diff)
docker-compose.yaml: limit the log size to 10M and 10 files
Signed-off-by: Arthur She <arthur.she@linaro.org>
-rw-r--r--src/dockerfiles/servod/docker-compose.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dockerfiles/servod/docker-compose.yaml b/src/dockerfiles/servod/docker-compose.yaml
index 3018ffe..50e529e 100644
--- a/src/dockerfiles/servod/docker-compose.yaml
+++ b/src/dockerfiles/servod/docker-compose.yaml
@@ -8,6 +8,11 @@ x-common: &common_settings
dockerfile: Dockerfile
restart: always
privileged: true
+ logging:
+ driver: json-file
+ options:
+ max-size: "10m"
+ max-file: "10"
network_mode: "host"
cap_add:
- NET_ADMIN