Docker 8082端口无法访问

Docker 8082端口无法访问

我的 docker-compose.yml 中有配置

  swagger-ui:
    image: swaggerapi/swagger-ui
    container_name: "swagger-ui"
    ports:
      - "8082:8080"
    environment:
      API_URL: "https://my.site/swagger.json"

它在我的 http://localhost:8082 上工作,但在生产环境中尝试打开时,负载无限https://my.site:8082

➜  aaa git:(develop) sudo docker-compose ps
[sudo] password for user: 
      Name                    Command               State                 Ports              
---------------------------------------------------------------------------------------------                      
swagger-ui         /docker-entrypoint.sh sh / ...   Up      80/tcp, 0.0.0.0:8082->8080/tcp

答案1

Cloudflare 已被阻止 8082

相关内容