码头工人组成显示服务器正在运行,但无法访问显示站点的浏览器

时间:2020-05-10 12:10:17

标签: docker docker-compose

运行 docker-compose up 命令

Starting tutorial_product-service_1 ...
Starting 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: 176-459-861

docker-compose.yml

version: '3'

services:
 product-service:
  container_name: tutorial_product-service_1
  build: ./product
  volumes:
   - ./product:/usr/src/app
  networks:
   testing_net:
    ipv4_address: 193.167.10.1
  ports:
   - 5001:80

networks:
 testing_net:
  ipam:
   config:
    - subnet: 193.167.10.0/16

这是网址

http://193.167.10.1:5001/

,但显示无法访问该站点。 有人可以帮助我吗?

0 个答案:

没有答案