From 520be070ec7e9ed815f464a5058bfc6df699b12c Mon Sep 17 00:00:00 2001 From: chunzhi <60135925+chunzhimoe@users.noreply.github.com> Date: Thu, 11 May 2023 16:05:05 +0800 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3ae73121..783e7b81 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.4' services: one-api: - image: justsong/one-api:latest + image: ghcr.io/songquanpeng/one-api:latest container_name: one-api restart: always command: --log-dir /app/logs @@ -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", "|", "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