Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Accepted Answer
Hi there,
As you’ve specified localhost/127.0.0.1 in your Nginx container, it is trying to connect on that port to itself.
Instead, as your containers are in the same network, you can specify the backend container name:
proxy_pass http://playapi;
That way the Nginx container will try to connect to the playapi container directly over the tmpnetwork network.
Your Nginx configuration would have worked if the Nginx service was running on the host itself rather than a separate container. Or if the Docker network was set to the host network rather than bridge.
Let me know how it goes! Regards, Bobby