#How to ensure Nginx Docker container reverse proxies to webserver Docker container?

2 messages · Page 1 of 1 (latest)

strong adder
#

Before anything, here is my streamlined-ubuntu Dockerfile: https://mystb.in/LikeAgoAlone

Running the Nginx Docker container via docker run -p 80:80 -p 443:443 nginx:latest and my webserver (running NextJS) Docker container via docker build --no-cache -t streamlined-ubuntu . && docker run -ip 0.0.0.0:3000:3000 -t streamlined-ubuntu:latest kind of yields results where / gives the basic Nginx starter page and /test gives what I serve from the webserver. The problem is, I want the webserver to serve content to /, not /test and when I tried to change the location / section within my Nginx config to reverse proxy, it did not work as expected.

Here's my Nginx config: https://mystb.in/PreventPointsPaste

strong adder
#

I will note that I tried this on a local device instead of a VPS so will be trying that momentarily.