fix(config): Improve Redis logging and RocketMQ health checks

This commit is contained in:
2026-03-12 17:33:14 +08:00
parent 8d44663208
commit cc2eb5c3c8
4 changed files with 11 additions and 7 deletions
+3 -2
View File
@@ -120,10 +120,11 @@ services:
- JAVA_OPT_EXT=-server -Xms256m -Xmx256m
command: sh mqnamesrv
healthcheck:
test: ["CMD", "sh", "-c", "nc -z localhost 9876"]
test: ["CMD-SHELL", "test -f /home/rocketmq/logs/rocketmqlogs/nameservicedefault.log && grep -q 'boot success' /home/rocketmq/logs/rocketmqlogs/nameservicedefault.log || exit 1"]
interval: 10s
timeout: 5s
retries: 5
retries: 10
start_period: 30s
networks:
- ha-network