簡體   English   中英

我無法使用我的 Azure VM 公共 ip 地址訪問我的 docker 容器

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM