[英]I can't access my docker container with my Azure VM public ip address
i have dockerized web app (.net core mvc) i can access with internal ip address but i can't access with my Windows VM public ip address (eg: 13.88.82.123:7272) and can't redirect my domain from cloudflare.
我已经尝试过网络模式主机和其他一些网络示例。 这是我的 docker-compose 文件。
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 容器模式下运行?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.