繁体   English   中英

使用 nuxt static 应用程序到前端容器的 traefik 代理

[英]traefik proxy to frontend container with nuxt static app

我在客户端上显示我的前端(nuxt spa static 应用程序)时遇到问题。 在 url my.domain:8090我无法查看我的前端。 您可以在 gistGithub 上查看所有源代码,在此处输入链接描述 In traefik admin dashboard I see connection with with docker-compose frontend_service , but it is unavailable when I go to URL my.domain:8090 , then I has an error with white screen and text on bad gateway with status 502 . 我怎么解决这个问题? 在此处输入图像描述

在此处输入图像描述

通过在 docker-compose-frontend 中添加 label 解决了问题

"traefik.http.services.my_frontend.loadbalancer.server.port=8090"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM