[英]traefik reverse-proxy with docker backend - configure frontend rules in traefik's config file and not via container label
[英]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.