fix(deploy): bound infrastructure container logs
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user