Update docker-compose.yml

This commit is contained in:
chunzhi 2023-05-11 16:10:25 +08:00 committed by GitHub
parent 4fccd630a5
commit 59000e9465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ services:
# SESSION_SECRET: random_string
# SQL_DSN: root:123456@tcp(localhost:3306)/one-api
healthcheck:
test: ["CMD", "curl", "-s", "-o", "/dev/null", "-w", "%{http_code}", "http://localhost:3000/api/status", "|", "grep", "200"] # 改为curl检测状态
test: ["CMD", "curl", "-s", "-o", "/dev/null", "-w", "%{http_code}", "http://localhost:3000/api/status", "|", "grep", "200"] # 改为 curl 检测状态
interval: 30s
timeout: 10s
retries: 3