Limit docker logs to 300MB per container

This commit is contained in:
Luke Parker 2024-03-06 21:49:55 -05:00
parent 06c23368f2
commit 6c8a0bfda6
No known key found for this signature in database

View file

@ -346,6 +346,8 @@ fn start(network: Network, services: HashSet<String>) {
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 {