Update docker-compose.yml
This commit is contained in:
parent
2e47b780f7
commit
520be070ec
@ -2,7 +2,7 @@ version: '3.4'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
one-api:
|
one-api:
|
||||||
image: justsong/one-api:latest
|
image: ghcr.io/songquanpeng/one-api:latest
|
||||||
container_name: one-api
|
container_name: one-api
|
||||||
restart: always
|
restart: always
|
||||||
command: --log-dir /app/logs
|
command: --log-dir /app/logs
|
||||||
@ -16,7 +16,7 @@ services:
|
|||||||
# SESSION_SECRET: random_string
|
# SESSION_SECRET: random_string
|
||||||
# SQL_DSN: root:123456@tcp(localhost:3306)/one-api
|
# SQL_DSN: root:123456@tcp(localhost:3306)/one-api
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
Loading…
Reference in New Issue
Block a user