Skip to content

Commit 056199b

Browse files
committed
调整MySQL和Redis的健康检查配置,修改间隔和超时时间
1 parent 96ef77c commit 056199b

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

templates/docker-compose.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ services:
1515
healthcheck:
1616
test:
1717
['CMD', 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p$$MYSQL_ROOT_PASSWORD']
18-
interval: 3s
19-
timeout: 5s
18+
interval: 5s
19+
timeout: 3s
2020
retries: 10
2121
redis:
2222
image: redis:8.0-M04
@@ -25,8 +25,3 @@ services:
2525
ports:
2626
- 6379:6379
2727
command: --requirepass abcde
28-
healthcheck:
29-
test: ['CMD', 'redis-cli', '-a', 'abcde', 'ping']
30-
interval: 3s
31-
timeout: 5s
32-
retries: 10

0 commit comments

Comments
 (0)