docker compose up 工作正常,但浏览器显示无法访问站点

2024-02-14

docker-compose up显示这个:

Recreating tutorial_product-service_1 ...
Recreating tutorial_product-service_1 ... done
Attaching to tutorial_product-service_1
product-service_1  |  * Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
product-service_1  |  * Restarting with stat
product-service_1  |  * Debugger is active!
product-service_1  |  * Debugger PIN: 192-693-276

和我的 docker-compose.yml

version: '3'

services:
 product-service:
  container_name: tutorial_product-service_1
  build: ./product
  volumes:
   - ./product:/usr/src/app
  ports:
   - 5002:80

我已经在AWS EC2 Ubuntu实例上安装了docker,它的IP是:http://18.225.37.175 http://18.225.37.175

但当我跑步时http://18.225.37.175:5002/ http://18.225.37.175:5002/它显示我无法访问网站。

有什么帮助吗?


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

docker compose up 工作正常,但浏览器显示无法访问站点 的相关文章

随机推荐