修复bug

This commit is contained in:
Vaica committed 2026-06-21 22:03:30 +08:00
1 parent 3036891b5a
commit 62145a7125
2 files changed
+6 -6

No files matched your search

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