swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.58k stars 786 forks source link

docker里使用swoft使用nginx代理后报502 #1079

Open deverdragon opened 5 years ago

deverdragon commented 5 years ago

docker布署的应用,用supervisor启动之后,容器列表有这个应用,telnet也能连接上,但是通过nginx连接报502,日志里提示 The proxy server received an invalid response from an upstream server.,很奇怪的一个问题是,还有一个用supervisor启动的容器,是另一个swoole框架,这两个一起启动就正常,只启动swoft的就是不行,有哪位大神知道这是啥情况

The proxy server received an invalid response from an upstream server.

sakuraovq commented 5 years ago

看看端口暴露呢 不应该的 是用的官方的 swoft 镜像吗

imzyf commented 4 years ago

https://stackoverflow.com/questions/38346847/nginx-docker-container-502-bad-gateway-response maybe useful