Node project with Express using nginx proxy server via docker container. This project is running on port 3000 standard express but does not respond without going through the proxy first which in turn is running on port 80 to simplify access by the browser.
- Docker
- Web browser
-
Clone this project
git clone https://github.com/WalissonRodrigo/node-nginx-proxy.git
-
Open your terminal and navigate to the clone folder using:
cd node-nginx-proxy -
After navigating to the project folder, run on your terminal:
docker-compose up -d --build
-
Open your browser and access: http://localhost | http://localhost/now | http://localhost:8080 | http://localhost:8080/now
-
Change the files in the
nodefolder and the server reloads via nodemon at run time, but in the browser you need to reload the page to see your changes being reflected.