fix(deploy): bound infrastructure container logs

This commit is contained in:
2026-09-02 15:30:29 +08:00
parent 9e0d2f6cdb
commit 25c4dd50b3
3 changed files with 39 additions and 0 deletions
+9
View File
@@ -1,5 +1,11 @@
name: firstleg-test-infra
x-bounded-logging: &bounded-logging
driver: local
options:
max-size: ${DOCKER_LOG_MAX_SIZE:-50m}
max-file: "${DOCKER_LOG_MAX_FILE:-3}"
services:
nacos:
image: docker.m.daocloud.io/nacos/nacos-server:v2.3.2
@@ -22,6 +28,7 @@ services:
retries: 20
start_period: 30s
restart: unless-stopped
logging: *bounded-logging
networks: [baiyue]
mysql:
@@ -46,6 +53,7 @@ services:
retries: 20
start_period: 30s
restart: unless-stopped
logging: *bounded-logging
networks: [baiyue]
redis:
@@ -62,6 +70,7 @@ services:
timeout: 5s
retries: 10
restart: unless-stopped
logging: *bounded-logging
networks: [baiyue]
volumes: