🐳 修改 docker 配置.

This commit is contained in:
lijiahangmax
2025-07-10 14:50:36 +08:00
parent ef9c34f7d9
commit 2913ddb2e0
3 changed files with 11 additions and 3 deletions

View File

@@ -20,5 +20,9 @@ RUN \
# 复制 jar 包
COPY ./service/orion-visor-launch.jar /app/app.jar
# 启动检测
HEALTHCHECK --interval=15s --timeout=5s --retries=5 --start-period=10s \
CMD wget -T5 -qO- http://127.0.0.1:9200/orion-visor/api/server/bootstrap/health | grep ok || exit 1
# 启动
CMD ["java", "-jar", "/app/app.jar"]