containers / containers/podman-compose

nginx gets 302 when under podman-compose

Open
#203 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.2k
Forks
622
PR merge metrics
No merged PRs in 30d

Description

I have a docker-compose.yml file where I changed all the ports for solr, and zookeeper to be unique and now it runs fine under podman-compose. My last step is to use nginx as a load balancer for this. I added the nginx image as another service block and mapped the container port of 80 to 8090. I listed all three solr nodes with their ports in the upstream block. When I run podman-compose up, all the containers come up fine.
The problem is when I try to hit nginx, I get a 302 error. The browser shows that nginx redirected as it should though. Fiddler debugger shows that the next request received a 502 error.

Any guidance is appreciated.
Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.