修复bug

This commit is contained in:
Vaica committed 2026-06-21 22:03:30 +08:00
1 parent 0ce03dced7
commit 2e7a3ad2d6
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -13,8 +13,8 @@ services:
ports:
- "8016:8016"
volumes:
# Hugo 博客目录(必须)
- ${BLOG_ROOT:-../blog}:/blog
# Hugo 博客目录(必须)- .. 即为 write-server 的上级目录(博客根目录)
- ${BLOG_ROOT:-..}:/blog
# 本地回收站目录
- ./recycle:/app/recycle
# 日志目录
@@ -31,11 +31,11 @@ services:
networks:
- write-network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8016/api/stats"]
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8016/api/stats"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
start_period: 60s
logging:
driver: "json-file"
options:
@@ -57,7 +57,7 @@ services:
- ./logs/nginx:/var/log/nginx
depends_on:
write-server:
condition: service_healthy
condition: service_started
networks:
- write-network
+1 -1
View File
@@ -6,7 +6,7 @@ set -e
# 配置
PORT=${PORT:-8016}
HOST=${HOST:-localhost}
HOST=${HOST:-127.0.0.1}
TIMEOUT=${HEALTH_CHECK_TIMEOUT:-5}
# 检查服务是否响应