From 6c8a0bfda6f72b2c35f0dc721e57b453620e3640 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Wed, 6 Mar 2024 21:49:55 -0500 Subject: [PATCH] Limit docker logs to 300MB per container --- orchestration/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orchestration/src/main.rs b/orchestration/src/main.rs index a3643e7ab..1a2c48caa 100644 --- a/orchestration/src/main.rs +++ b/orchestration/src/main.rs @@ -346,6 +346,8 @@ fn start(network: Network, services: HashSet) { let command = command.arg("create").arg("--name").arg(&docker_name); let command = command.arg("--network").arg("serai"); let command = command.arg("--restart").arg("always"); + let command = command.arg("--log-opt").arg("max-size=100m"); + let command = command.arg("--log-opt").arg("max-file=3"); let command = match name { "bitcoin" => { if network == Network::Dev {