build(biji-houdaun): 更新 Docker 配置和健康检查端口
- 修改健康检查端口:将 Dockerfile 中的健康检查 URL 从 http://localhost:8082/actuator/health 更改为 http://localhost:8083/actuator/health - 更新 Docker 主机:将 pom.xml 中的 dockerHost 从 http://45.204.212.245:2375 更改为 http://127.0.0.1:2375- 调整资源目录:
This commit is contained in:
@@ -34,7 +34,7 @@ EXPOSE 8083
|
||||
|
||||
# 添加健康检查
|
||||
HEALTHCHECK --interval=30s --timeout=3s \
|
||||
CMD wget --quiet --tries=1 --spider http://localhost:8082/actuator/health || exit 1
|
||||
CMD wget --quiet --tries=1 --spider http://localhost:8083/actuator/health || exit 1
|
||||
|
||||
# 启动应用 (使用exec形式支持JVM参数)
|
||||
ENTRYPOINT exec java $JAVA_OPTS -jar app.jar
|
||||
|
||||
Reference in New Issue
Block a user