fix: add logging limit

This commit is contained in:
tao.chen
2026-08-12 19:52:14 +08:00
parent 9d0ca1e8b6
commit 0bcdbb1068
+25
View File
@@ -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