我能';t使用我的Azure VM公共ip地址访问我的docker容器
我已停靠web应用(.net core mvc),我可以使用内部ip地址访问,但无法使用我的Windows VM公共ip地址(例如:13.88.82.123:7272)访问,也无法从cloudflare重定向我的域 我尝试了网络模式主机和其他一些网络示例。这是我的docker文件我能';t使用我的Azure VM公共ip地址访问我的docker容器,docker,docker-compose,docker-networking,Docker,Docker Compose,Docker Networking,我已停靠web应用(.net core mvc),我可以使用内部ip地址访问,但无法使用我的Windows VM公共ip地址(例如:13.88.82.123:7272)访问,也无法从cloudflare重定向我的域 我尝试了网络模式主机和其他一些网络示例。这是我的docker文件 services: web: container_name: ciroplus image: tasmehmetcan/samplenetcoreapp:latest hostname:
services:
web:
container_name: ciroplus
image: tasmehmetcan/samplenetcoreapp:latest
hostname: testciroplus.dogostore.com
depends_on:
- "redis_image"
environment:
- ASPNETCORE_URLS=http://*:1905
links:
- "redis_image"
redis_image:
image: redis
container_name: cache
ports:
- "6379:6379"
proxy:
image: vc-nginx
build:
context: ./nginx
dockerfile: Dockerfile
network: host
ports:
- '7272:8080'
environment:
VIRTUAL_HOST: blabla.mydomain.com
expose:
- "7272"
depends_on:
- web
links:
- web:web1
你能更详细地解释一下你的配置吗?您的Windows虚拟机是否正在运行Windows 10客户端,而您正在Linux容器模式下运行?在docker/docker compose中阅读有关网络模式的内容