Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
What value should I use for Nginx proxy_pass running in Docker?
I have a fresh Droplet on Ubuntu 16.04 running Docker and Docker Compose with two containers: nginx and my homepage.
My homepage container is running on port 3000. I can curl localhost:3000 and see the app.
I have this setup on my home server and on AWS and the
proxy_pass value is the local/private IP address of my server. For example on my home server it’s
http://192.168.1.100:3000/, on AWS it’s the Private IP of the EC2 instance.
I have tried several values on the Droplet for
proxy_pass such as
localhost, but none of those worked. I lastly tried enabling private networking and tried using the listed private IP address. Still nothing…
What should I be using for the value here?
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.×