带有docker和healthcheck的Spring-boot MS无法正常工作

问题描述

世界世界!

我有this public repo,带有一些springboot MS,docker文件,compose和诸如此类的架构(缺少了一些部分):

enter image description here

如果我在本地运行它,则按照docker compose上的启动顺序,如果我ping通此URL,则会得到此信息:

http:// localhost:8888 / actuator / health-> {“状态”:“ UP”}

http:// localhost:8762 /访问-> Yahooo!您好世界访问服务!! :)在端口8300上运行

http:// localhost:8762 / customers-> Yahooo!客户服务您好,世界!! :)在端口8100上运行

http:// localhost:8761 / actuator / health

http:// localhost:9090 / applications->管理员

到目前为止,很好。

但是当我尝试docker-compose up它时,问题就开始了。

某些服务依赖于其他服务,为此,我使用运行状况检查方法

enter image description here

enter image description here

但是我收到此错误

enter image description here

谁能告诉我我在这里缺少什么才能让他们在进行健康检查后开始工作?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)