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?