From a17ba0efb9e7de9bf35d9ead07e48b78df60f189 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 26 May 2026 20:58:30 +0800 Subject: [PATCH] =?UTF-8?q?docker-compose=20=E5=8A=A0=20json-file=20?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=B8=8A=E9=99=90=2050m=C3=973=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=AE=B9=E5=99=A8=E6=97=A5=E5=BF=97=E5=90=83?= =?UTF-8?q?=E5=85=89=E7=A3=81=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 855b7ecf..68c8b8df 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,11 @@ services: polyweather: container_name: polyweather_bot + logging: + driver: "json-file" + options: + max-size: "50m" + max-file: "3" cpus: ${POLYWEATHER_BOT_CPUS:-0.75} env_file: &id001 - .env @@ -28,6 +33,11 @@ services: - ${POLYWEATHER_RUNTIME_DATA_DIR:-/var/lib/polyweather}:/app/data - ./bot.log:/app/bot.log polyweather_frontend: + logging: + driver: "json-file" + options: + max-size: "50m" + max-file: "3" container_name: polyweather_frontend environment: NEXT_PUBLIC_POLYWEATHER_API_BASE_URL: ${NEXT_PUBLIC_POLYWEATHER_API_BASE_URL:-} @@ -53,6 +63,11 @@ services: restart: unless-stopped polyweather_web: command: python web/app.py + logging: + driver: "json-file" + options: + max-size: "50m" + max-file: "3" container_name: polyweather_web env_file: *id001 healthcheck: