我准备在Windows docker容器中部署我的网站, 在以下脚本中:[ docker-compose up ],一切都很好,我可以访问我的网站;
version: "3"
services:
web:
# replace username/repo:tag with your name and image details
image: haltan1118/aspdotnetcore:1.0.0
deploy:
replicas: 5
resources:
limits:
cpus: "0.5"
memory: 250M
restart_policy:
condition: on-failure
ports:
- "8111:80"
networks:
- webnet
networks:
webnet:
docker-compose up
但是如果我使用脚本[ Docker Stack Deploy ]构建它, 泊坞窗显示网站的运行状态正常,每个点都在运行,但我无法到达它们! 而且系统没有日志可检查此问题。
docker stack deploy -c docker-compose.yml mywebtest