Update docker-compose.yml
This commit is contained in:
parent
963b45660e
commit
26fc1e8bc1
@ -9,14 +9,14 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- /home/ubuntu/data/one-api:/data #数据目录
|
- /home/ubuntu/data/one-api:/data
|
||||||
- /home/ubuntu/data/one-api/logs:/app/logs #日志目录
|
- /home/ubuntu/data/one-api/logs:/app/logs
|
||||||
# environment:
|
# environment:
|
||||||
# REDIS_CONN_STRING: redis://default:redispw@localhost:49153
|
# REDIS_CONN_STRING: redis://default:redispw@localhost:49153
|
||||||
# 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", "-f", "http://localhost:3000/healthz"]
|
test: ["CMD", "curl", "-s", "-o", "/dev/null", "-w", "%{http_code}", "http://localhost:3000", "|", "grep", "200"] #改为curl检测状态
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
Loading…
Reference in New Issue
Block a user