docker compose up working fine but browser showing site can't be reached

有些话、适合烂在心里 提交于 2021-02-17 07:02:39

问题


docker-compose up showing this:

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

and my docker-compose.yml

version: '3'

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

I have installed docker on AWS EC2 Ubuntu instance and its IP is : http://18.225.37.175

But when I run http://18.225.37.175:5002/ it shows me site can not be reached.

Any help?

来源:https://stackoverflow.com/questions/61713741/docker-compose-up-working-fine-but-browser-showing-site-cant-be-reached

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!