运行 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/
,但显示无法访问该站点。 有人可以帮助我吗?