network backend.
I want to setup some web services containers without port publishing and nginx with published 80 port as proxy. Before I just created containers, created network, added all containers to network and it just worked.
Now I am creating network, adding container and it won't start. Just infinity waiting. Tried to Google it, but nothing similar found.
Also I tried to change network_backend back to cni, install podman-plugins and use it. It worked, I started nginx containers, but it works only from localhost. podman ps shows exposing 0.0.0.0:80->80/tcp, curl http://localhost works, but curl http://ip-address from other host doesn't work.
Just a single nginx works fine if I start container without network connected, but without network IDK how to connect other containers to nginx. Any ideas?
Umm are you trying to use nginx as a proxy to the other containers that are running your app?
Yes, that's what I want to do
If I understand correctly, you are creating a new bridge to host your containers (which will have nginx + app). Now you want to receive traffic to nginx and make sure it can route to e corresponding app. You see that “localhost” of nginx will be different from “localhost” of other containers even if they are on the same network.
Yeah, I use container names in nginx configs
I am not sure if the name alone can resolve. I’ll need to check it myself. But I don’t understand, if it’s just one VM then why are you “load balancing”(so to speak) at all?
Different containers, different processes.
What do you mean "load balancing"?
Обсуждают сегодня