From 0bcdbb1068513815dbeb87d67788c5c7742bbca2 Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Wed, 12 Aug 2026 19:52:14 +0800 Subject: [PATCH] fix: add logging limit --- docker-compose.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 1805e57..8d15eac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,11 @@ services: build: context: . dockerfile: backend/Dockerfile + logging: + driver: json-file + options: + max-size: "200m" + max-file: "10" restart: "no" command: - uv @@ -21,6 +26,11 @@ services: build: context: . dockerfile: frontend/Dockerfile + logging: + driver: json-file + options: + max-size: "200m" + max-file: "10" restart: unless-stopped # Architecture §2.2: this is the only service exposed to the host. The # default.conf file is mounted as a template; scripts/nginx-entrypoint.sh @@ -50,6 +60,11 @@ services: build: context: . dockerfile: backend/Dockerfile + logging: + driver: json-file + options: + max-size: "200m" + max-file: "10" restart: unless-stopped # No host port: architecture §2.2 — only Nginx is externally reachable. # No local-FS volume: backend stores everything in S3 (S3_*). @@ -96,6 +111,11 @@ services: build: context: . dockerfile: runtime/Dockerfile + logging: + driver: json-file + options: + max-size: "200m" + max-file: "10" restart: unless-stopped ports: - 8892:8000 @@ -150,6 +170,11 @@ services: build: context: . dockerfile: schedule/Dockerfile + logging: + driver: json-file + options: + max-size: "200m" + max-file: "10" restart: unless-stopped # No host port: architecture §2.2 — only Nginx is externally reachable. # No local-FS volume: schedule executes nodes via tempfile.TemporaryDirectory